Преглед на файлове

Mouse wheel buttons fix when other button holding down.

Margers преди 5 месеца
родител
ревизия
b3591aecc2
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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;