summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7f98758)
raw | patch | inline | side by side (parent: 7f98758)
author | Diederik van Lierop <mailat-signdiedenrezidotnl> | |
Sun, 21 Mar 2010 19:46:45 +0000 (20:46 +0100) | ||
committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | |
Sun, 21 Mar 2010 19:46:45 +0000 (20:46 +0100) |
src/display/sp-canvas.cpp | patch | blob | history |
index 446066d931a204eb73c583bc7a480dc5897fdbe6..c6778c8c5ec56fe8dbe5f8472fb6a15827a35946 100644 (file)
// lost event. We can't wait for idle events to have current_item updated, we need it now!
// Otherwise, scrolling when hovering above a pre-snap indicator won't work (for example)
// See this bug report: https://bugs.launchpad.net/inkscape/+bug/522335/comments/8
- if (canvas->need_repick && !canvas->in_repick) {
+ if (canvas->need_repick && !canvas->in_repick && event->type == GDK_SCROLL) {
+ // To avoid side effects, we'll only do this for scroll events, because this is the
+ // only thing we want to fix here. An example of a reported side effect is that
+ // otherwise selection of nodes in the node editor by dragging a rectangle using a
+ // tablet will break
canvas->need_repick = FALSE;
pick_current_item (canvas, (GdkEvent *) event);
}