forked from bartvdbraak/blender
Fix T40549: box selection starting point in the file requester.
We need to 'reset' mouse coordinates to the one it was when the gesture handling started, else org coords are where the tweak event is created, which gives a noticeable gap (several pixels) and unwanted behavior like the one retported about file box selection.
This commit is contained in:
parent
0ae8ce3ab1
commit
f1f33ba7be
@ -3241,6 +3241,9 @@ static void tweak_gesture_modal(bContext *C, const wmEvent *event)
|
||||
wmEvent tevent;
|
||||
|
||||
wm_event_init_from_window(window, &tevent);
|
||||
/* We want to get coord from start of drag, not from point where it becomes a tweak event, see T40549 */
|
||||
tevent.x = rect->xmin + sx;
|
||||
tevent.y = rect->ymin + sy;
|
||||
if (gesture->event_type == LEFTMOUSE)
|
||||
tevent.type = EVT_TWEAK_L;
|
||||
else if (gesture->event_type == RIGHTMOUSE)
|
||||
|
Loading…
Reference in New Issue
Block a user