Browse Source

Mouse wheel buttons fix when other button holding down.

Margers 5 tháng trước cách đây
mục cha
commit
b3591aecc2
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      packages/fv/src/drivers.inc

+ 2 - 0
packages/fv/src/drivers.inc

@@ -1410,6 +1410,8 @@ begin
      MouseWhere.Y:=e.y;
      Event.Double:=false;
      Event.Triple:=false;
+     if (e.Buttons and (MouseButton4 or MouseButton5))<>0 then
+       e.Action:=MouseActionDown; { wheel buttons process in mouse down event }
      case e.Action of
        MouseActionMove :
          Event.What:=evMouseMove;