Shift + Move tool immediately snaps object to (0,0)
@Stratelier
Submitted by Richard Gitschlag Link to original bug (#734760)
Description
Noticed this today while trying to align some layers on an image.
The correct behavior: 1a - Switch to the Move tool and check its configuration (move: layer. mode: pick) 1b - Click on a layer of interest; nothing should happen except selecting the layer for moving. Then click and drag it around a little. 1c - Switch the tool mode to 'move current' and repeat click and drag.
Incorrect behavior: 1a - Return the tool to pick mode. Now, hold down Shift to toggle the tool mode, then click on the layer (to start a drag operation). 1b - The layer immediately repositions itself so that its click point is at image location (0,0). However, once the mouse is actually dragged, the object repositions itself correctly (clicked point underneath mouse cursor) and the drag operation works as expected. 1c - Again with the Shift key held down, click and release the mouse (without dragging). The layer is immediately moved by (click point)->(0,0), but there was no drag operation this time; no action should have occured yet.
This occured regardless of what mode the Move tool is in (pick or move), only when the Shift key is held down to toggle modes.
Version: 2.8.10