Commit 3d0a2bb9 authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

SANKORE-139 minor comment update

parent bd0ced23
...@@ -640,6 +640,9 @@ UBBoardView::wheelEvent (QWheelEvent *event) ...@@ -640,6 +640,9 @@ UBBoardView::wheelEvent (QWheelEvent *event)
{ {
// Too many wheelEvent are sent, how should we handle them to "smoothly" zoom ? // Too many wheelEvent are sent, how should we handle them to "smoothly" zoom ?
// something like zoom( pow(zoomFactor, event->delta() / 120) ) // something like zoom( pow(zoomFactor, event->delta() / 120) )
// use DateTime man, store last event time, and if if less than 300ms than this is one big scroll
// and move scroll with one const speed.
// so, you no will related with scroll event count
} }
// event->accept (); // event->accept ();
QGraphicsView::wheelEvent(event); QGraphicsView::wheelEvent(event);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment