[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51645] zoom to singular region dumps core
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #51645] zoom to singular region dumps core |
Date: |
Fri, 4 Aug 2017 20:35:44 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #5, bug #51645 (project octave):
In general what you are saying is true, but I don't know if the double-click
is causing a return to the original plot exactly. It seems to me the plot is
return to the first zoomed plot, not the original. That is, with Z+ active:
<press "Autoscale">
plot goes to original
DOUBLE-CLICK somewhere on plot
plot zooms, then redraws to the same location (call that ZOOM1)
DOUBLE-CLICK
plot zooms to ZOOM2, then goes back to ZOOM1
SINGLE-CLICK
plot zooms to ZOOM2
DOUBLE-CLICK
plot zooms to ZOOM3, then goes back to ZOOM1
<press "Autoscale">
plot goes back to original
I suppose there could be a more useful zooming pattern. Nonetheless, if you
find this inability to differentiate the single click from a pending double
click nauseating, I think the way to handle that is to use a Qt timer with
doubleClickInterval() to call the single-click operation, and if the
doubleclick event comes just cancel the timer so that the single-click
operation isn't done. (Clearly the single click operation is done on the
Release event because pressing without releasing goes into zoom-box mode.)
https://wiki.python.org/moin/PyQt/Distinguishing%20between%20click%20and%20double%20click
Can you think of a preferred behavior?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51645>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dmitri A. Sergatskov, 2017/08/02
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/02
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/02
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/03
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Rik, 2017/08/04
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core,
Dan Sebald <=
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Rik, 2017/08/04
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/04
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/04
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Rik, 2017/08/04
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/05
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/05
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/05
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/06
- [Octave-bug-tracker] [bug #51645] zoom to singular region dumps core, Dan Sebald, 2017/08/06