Mercurial > hg > svgui
diff view/Pane.cpp @ 145:4d132a06db9b
* Add mono timestretch toggle button; some more work on getting blocksize etc
parameters through to plugins
author | Chris Cannam |
---|---|
date | Mon, 18 Sep 2006 16:43:17 +0000 |
parents | 10a82b2bbb8b |
children | b1a3a9400284 |
line wrap: on
line diff
--- a/view/Pane.cpp Fri Sep 15 16:36:04 2006 +0000 +++ b/view/Pane.cpp Mon Sep 18 16:43:17 2006 +0000 @@ -980,6 +980,23 @@ //!!! this should have its own function + //!!! want to do some cleverness to avoid dragging left/right + // at the same time as up/down when the user moves the mouse + // diagonally. + // e.g. have horizontal and vertical thresholds and a series + // of states: unknown, constrained, free + // + // -> when the mouse first moves we're in unknown state: + // what then? the thing we really want to avoid is moving + // a tiny amount in the wrong direction, because usually + // the problem is that to move at all is expensive -- so what + // do we do? + // + // -> when it's moved more than say 10px in h or v + // direction we lock into h or v constrained mode. If it + // moves more than say 20px in the other direction + // subsequently, then we switch into free mode. + Layer *layer = 0; if (getLayerCount() > 0) layer = getLayer(getLayerCount() - 1);