Discussion:
who can reproduce mousewheel scrolling issues?
Olivier Sessink
2012-10-04 11:29:01 UTC
Permalink
can you insert this line: g_print("doc_scroll_event_lcb,
event->state=%d,
event->direction=%d\n",event->state,event->direction); in
doc_scroll_event_lcb and see what the output is? Olivier
Fixed in revision 7668.
good job!
Please check that I haven't broken scrolling for other people ;-)
I've just modified it slightly so it will compile on older gtk releases.
- When I scroll the wheel away from me (up?) the view zooms in.
- When I scroll the wheel towards me (down?), the view zooms out
the weird thing is that smooth scrolling was introduced in gtk 3.4 (it
seems?), and the original bug report was before gtk 3.4 (user reports
Debian wheezy in https://bugzilla.gnome.org/show_bug.cgi?id=677015 but
possibly that was with gtk-3.3 which was available in wheezy)....?

Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Christian Tellefsen
2012-10-03 21:26:57 UTC
Permalink
can you insert this line: g_print("doc_scroll_event_lcb,
event->state=%d,
event->direction=%d\n",event->state,event->direction); in
doc_scroll_event_lcb and see what the output is? Olivier
doc_scroll_event_lcb, event->state16, event->direction=4

$2 = {type = GDK_SCROLL, window = 0xaacea0, send_event = 0 '\000',
time = 365367630, x = 702.40423583984375, y = 295.94927978515625,
state = 16, direction = GDK_SCROLL_SMOOTH, device = 0x6b4890,
x_root = 863.40423583984375, y_root = 374.94927978515625, delta_x = 0,
delta_y = 0}

gdk3 docs seems to point to delta_x and delta_y, alternatively
gdk_event_get_scroll_deltas(), but that function needs GdkEvent rather
than GdkEventScroll.

A bit of testing seems to confirm it. The only very annoying thing is
that for the first scroll event, delta_x and delta_y are always zero
(comment on the stackoverflow link below).

I also found this one while googling gdk_event_get_scroll_deltas():
http://stackoverflow.com/questions/11775161/gtk3-get-mouse-scroll-direction


I'll check in a fix.


Christian
Christian Tellefsen
2012-10-03 21:55:56 UTC
Permalink
can you insert this line: g_print("doc_scroll_event_lcb,
event->state=%d,
event->direction=%d\n",event->state,event->direction); in
doc_scroll_event_lcb and see what the output is? Olivier
Fixed in revision 7668.

Please check that I haven't broken scrolling for other people ;-)

And just to check that scrolling is done consistently:
- When I scroll the wheel away from me (up?) the view zooms in.
- When I scroll the wheel towards me (down?), the view zooms out


Christian
Christian Tellefsen
2012-10-03 20:42:50 UTC
Permalink
various people have reported issues with control-mousewheel not zooming
in and out
https://bugs.launchpad.net/bluefish/+bug/1020925
Is there somebody on the list who can reproduce this?
Confirmed.

bluefish h2.2.3~svn7453-0bf1, ubuntu oneiric


Christian
Olivier Sessink
2012-10-03 20:53:29 UTC
Permalink
Post by Christian Tellefsen
various people have reported issues with control-mousewheel not zooming
in and out
https://bugs.launchpad.net/bluefish/+bug/1020925
Is there somebody on the list who can reproduce this?
Confirmed.
bluefish h2.2.3~svn7453-0bf1, ubuntu oneiric
can you insert this line:

g_print("doc_scroll_event_lcb, event->state=%d,
event->direction=%d\n",event->state,event->direction);

in doc_scroll_event_lcb and see what the output is?

Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Olivier Sessink
2012-10-03 19:53:07 UTC
Permalink
Hi all,

various people have reported issues with control-mousewheel not zooming
in and out

for example in:
https://bugs.launchpad.net/bluefish/+bug/1020925

Is there somebody on the list who can reproduce this?

Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Loading...