Author Topic: [BUG] [EDITOR] Selecting pieces sometimes moves them  (Read 1532 times)

0 Members and 1 Guest are viewing this topic.

Online Proxima

  • Posts: 4570
    • View Profile
[BUG] [EDITOR] Selecting pieces sometimes moves them
« on: April 25, 2018, 08:32:32 PM »
Firstly, if the grid is on, then clicking on a piece to select it makes it jump to the grid. This is bad because the user may want to select the piece to make copies of it without changing its current position; and if they do want to adjust it to the grid they have the option of dragging it a short way and then back to its original position.

Secondly, again only if the grid is on, clicking on a piece with a negative X- or Y-coordinate, even if it is aligned with the grid, makes it jump by one grid-tile. This part is definitely a bug :P

Offline Nepster

  • Posts: 1829
    • View Profile
Re: [BUG] [EDITOR] Selecting pieces sometimes moves them
« Reply #1 on: July 16, 2018, 08:02:00 PM »
When you have had time to test the new editor version, please tell me whether the first part is still an issue.

PS: I know that the bug in the second part is still in the editor.

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: [BUG] [EDITOR] Selecting pieces sometimes moves them
« Reply #2 on: October 07, 2020, 10:32:58 PM »
Can confirm both parts of this remain an issue in the latest editor code.

Initial investigation points to it relating to the "on release mouse" code, in particular, that it might not be correctly distinguishing between a click vs a (very short) drag.
« Last Edit: October 07, 2020, 10:39:22 PM by namida »
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: [BUG] [EDITOR] Selecting pieces sometimes moves them
« Reply #3 on: October 07, 2020, 10:49:46 PM »
Both issues (including the less-obvious variant of the 2nd one, where the position is biased slightly towards the lower-right when dragging a piece with negative coordinates) fixed in commit 79c686b.
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)