mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777264: Remove timer-based repaint throttling r=cjones
This commit is contained in:
parent
c1d2060973
commit
a178e53bd6
@ -455,7 +455,6 @@ void AsyncPanZoomController::StartPanning(const MultiTouchInput& aEvent) {
|
||||
mX.StartTouch(touch.mScreenPoint.x);
|
||||
mY.StartTouch(touch.mScreenPoint.y);
|
||||
mState = PANNING;
|
||||
mLastRepaint = aEvent.mTime;
|
||||
|
||||
if (angle < AXIS_LOCK_ANGLE || angle > (M_PI - AXIS_LOCK_ANGLE)) {
|
||||
mY.LockPanning();
|
||||
@ -505,10 +504,7 @@ void AsyncPanZoomController::TrackTouch(const MultiTouchInput& aEvent) {
|
||||
ScrollBy(nsIntPoint(xDisplacement, yDisplacement));
|
||||
ScheduleComposite();
|
||||
|
||||
if (aEvent.mTime - mLastRepaint >= PAN_REPAINT_INTERVAL) {
|
||||
RequestContentRepaint();
|
||||
mLastRepaint = aEvent.mTime;
|
||||
}
|
||||
RequestContentRepaint();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -381,8 +381,6 @@ private:
|
||||
TimeStamp mLastSampleTime;
|
||||
// The last time a touch event came through on the UI thread.
|
||||
PRInt32 mLastEventTime;
|
||||
// The last time a repaint has been requested from Gecko.
|
||||
PRInt32 mLastRepaint;
|
||||
|
||||
// Stores the previous focus point if there is a pinch gesture happening. Used
|
||||
// to allow panning by moving multiple fingers (thus moving the focus point).
|
||||
|
Loading…
Reference in New Issue
Block a user