changeset 1946:217ce29096c3

no motionNotify when drag scrolling
author corvid <corvid@lavabit.com>
date Sun, 13 Mar 2011 22:21:23 +0000
parents b24a5b73ff10
children 09f9c91adf4b
files dw/fltkviewport.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewport.cc	Sun Mar 13 09:50:30 2011 -0400
+++ b/dw/fltkviewport.cc	Sun Mar 13 22:21:23 2011 +0000
@@ -292,7 +292,7 @@
  */
 void FltkViewport::positionChanged ()
 {
-   if (mouse_x != -1)
+   if (mouse_x != -1 && dragScrolling == false)
       (void)theLayout->motionNotify (this,
                                      translateViewXToCanvasX (mouse_x),
                                      translateViewYToCanvasY (mouse_y),