Lines Matching defs:panning
353 static unsigned int panning = 0;
366 if (panning) {
367 panning = 0;
386 // When starting panning, make sure there are no snap events pending because these might disable the panning again
390 panning = 1;
406 // When starting panning, make sure there are no snap events pending because these might disable the panning again
410 panning = 2;
424 // When starting panning, make sure there are no snap events pending because these might disable the panning again
428 panning = 3;
447 if (panning) {
448 if (panning == 4 && !xp && !yp ) {
449 // <Space> + mouse panning started, save location and grab canvas
461 if ((panning == 2 && !(event->motion.state & GDK_BUTTON2_MASK))
462 || (panning == 1 && !(event->motion.state & GDK_BUTTON1_MASK))
463 || (panning == 3 && !(event->motion.state & GDK_BUTTON3_MASK))) {
465 panning = 0;
484 gobble_motion_events(panning == 2 ? GDK_BUTTON2_MASK : (panning
533 if (within_tolerance && (panning || zoom_rb)) {
536 if (panning) {
537 panning = 0;
553 } else if (panning == event->button.button) {
554 panning = 0;
697 panning = 4;
720 // Stop panning on any key release
726 if (panning) {
727 panning = 0;