Lines Matching defs:speed
1230 * Analyses the current event, calculates the mouse speed, turns snapping off (temporarily) if the
1231 * mouse speed is above a threshold, and stores the current event such that it can be re-triggered when needed
1267 // Snap when speed drops below e.g. 0.02 px/msec, or when no motion events have occurred for some period.
1268 // i.e. snap when we're at stand still. A speed threshold enforces snapping for tablets, which might never
1278 gdouble speed = delta_t > 0 ? dist / delta_t : 1000;
1279 //std::cout << "Mouse speed = " << speed << " px/msec " << std::endl;
1280 if (speed > 0.02) { // Jitter threshold, might be needed for tablets
1282 // will keep on postponing the snapping as long as the speed is high.
1284 // now, just in case there's no future motion event that drops under the speed limit (when
1290 // speed threshold is ineffective. In the extreme case the delay is set to zero, and snapping will