summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-29 12:28:23 -0400
committerPietro Gagliardi <[email protected]>2014-04-29 12:28:23 -0400
commit170225c626f3e304a4bbfd1b1bb0ec9b3c52968f (patch)
tree815b3e9000f6cb61eef633c2f652c15e33db4571
parent90e4fa6f8f61ad0086395d23a7143d0f86a6ad00 (diff)
Removed another TODO about scrolling Areas on Windows (this time about aborting early if there seems to be no change).
-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