Package: comix
Version: 4.0.4-1
Followup-For: Bug #813303

Ok, I added lots of debug prints and found the issue.

Side scrolling causes page flips right away.

Using a touch device it is quite possible that a random page flip is
generated way before comix counts to 3 and flips the page due to
excessive scrolling outside of the page area.

Attaching a debdiff.

Thanks

Michal

-- System Information:
Debian Release: 8.3
  APT prefers stable
  APT policy: (901, 'stable'), (512, 'testing'), (510, 'unstable'), (505, 
'experimental'), (500, 'oldstable')
Architecture: armhf (armv7l)
Foreign Architectures: i386

Kernel: Linux 4.5.0-rc1-00069-g44cb9f7 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages comix depends on:
ii  gconf2          3.2.6-3
ii  python          2.7.9-1
ii  python-gtk2     2.24.0-4
ii  python-imaging  2.6.1-2

comix recommends no packages.

Versions of packages comix suggests:
ii  python  2.7.9-1
ii  unrar   1:5.2.7-0.1

-- no debconf information
diff -u comix-4.0.4/debian/rules comix-4.0.4/debian/rules
--- comix-4.0.4/debian/rules
+++ comix-4.0.4/debian/rules
@@ -19,6 +19,7 @@
 	dh_testroot
 
 	# Add here commands to clean up after the build process.
+	rm -f src/*.pyc
 
 	dh_clean 
 
diff -u comix-4.0.4/debian/changelog comix-4.0.4/debian/changelog
--- comix-4.0.4/debian/changelog
+++ comix-4.0.4/debian/changelog
@@ -1,3 +1,9 @@
+comix (4.0.4-1scroll1) UNRELEASED; urgency=medium
+
+  * fix scrolling on touch devices
+
+ -- Emfox Zhou <hramr...@chromebook.burning-in.hell>  Sun, 31 Jan 2016 15:25:15 +0100
+
 comix (4.0.4-1) unstable; urgency=low
 
   * New upstream release
only in patch2:
unchanged:
--- comix-4.0.4.orig/src/event.py
+++ comix-4.0.4/src/event.py
@@ -240,10 +240,11 @@
                     self._scroll_with_flipping(70, 0)
             else:
                 self._scroll_with_flipping(0, 70)
+        """ This part makes it pretty much impossible to scroll with touch devices
         elif event.direction == gtk.gdk.SCROLL_RIGHT:
             self._window.next_page()
         elif event.direction == gtk.gdk.SCROLL_LEFT:
-            self._window.previous_page()
+            self._window.previous_page() """
 
     def mouse_press_event(self, widget, event):
         """Handle mouse click events on the main layout area."""

Reply via email to