Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion DragToScroll.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ Setting("UseControlTargeting", true)
Setting("ConfineToWindow", false)
Setting("ConfineToControl", false)

; Sends Setting("Button") if scrolling does not happen
Setting("SendButtonIfNoScroll", false)

; Acceleration & momentum
Setting("UseAccelerationX", true)
Expand Down Expand Up @@ -330,6 +332,7 @@ Reset:
NewWinHwnd=
NewCtrlHwnd=
Target=
Scrolled=
Return


Expand Down Expand Up @@ -577,6 +580,10 @@ DragStop:

; finish drag
DragStatus := DS_HANDLED

if (SendButtonIfNoScroll && !Scrolled) {
Send {%Button%}
}
Return


Expand Down Expand Up @@ -788,6 +795,8 @@ Scroll(arg, horizontal="", format="px")
PostMessage, WM_HSCROLL, wparam, 0,, Ahk_ID %CtrlHwnd%
}
}

Scrolled := true
}

; Handler to check for a double-click of the right mouse button
Expand Down Expand Up @@ -1601,4 +1610,3 @@ ToolTip(Text, visibleSec=2)
ToolTip
Return
}