Questie

Questie

116M Downloads

Questie Tracker stuck on mouse while moving with multiple buttons down

Laumesis opened this issue ยท 0 comments

commented

Questie Tracker gets stuck on mouse if moving with mutiple mouse buttons down.

  1. Start dragging the tracker with left mouse button
  2. Press down also right mouse button
  3. Release left mouse button
  4. Tracker is still moving with mouse
  5. Release right mouse button
  6. Tracker is still moving with mouse

This is because OnDragStop(self) ui handler event doesn't have second parameter for mouse button as Questie code expects. So following check IsMouseButtonDown(button), where button is always nil, returns true if any mouse button is pressed down at the moment. So OnDragStop handler returns early if any mouse button is down. Tracker's drag events are registered only for left button.

I do not know why mouse button down is even checked in these handlers (on drag start and stop).

v6.8.1