summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--area_windows.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/area_windows.go b/area_windows.go
index 151e7df..de429cc 100644
--- a/area_windows.go
+++ b/area_windows.go
@@ -342,10 +342,7 @@ func scrollArea(s *sysData, wparam _WPARAM, which uintptr) {
newpos = maxsize - pagesize
}
- // TODO is this the right thing to do for SB_THUMBTRACK? or will it conflict?
- if newpos == si.nPos { // no change; no scrolling
- return
- }
+ // this would be where we would put a check to not scroll if the scroll position changed, but see the note about SB_THUMBPOSITION above: Raymond Chen's code always does the scrolling anyway in this case
delta := -(newpos - si.nPos) // negative because ScrollWindowEx() scrolls in the opposite direction
dx := delta