Changeset 139017 in webkit


Ignore:
Timestamp:
Jan 7, 2013 5:08:12 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Don't use double tap zoom if minimum and maximum page scale is the same
https://bugs.webkit.org/show_bug.cgi?id=106272

Patch by Yusuf Ozuysal <yusufo@google.com> on 2013-01-07
Reviewed by James Robinson.

We should only try to computed relevant scale and scrollOffset and start the animation
if the page is zoomable. This now creates an undesired animation for mobile pages which
are not zoomable.

  • src/WebViewImpl.cpp:

(WebKit::WebViewImpl::handleGestureEvent):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r139011 r139017  
     12013-01-07  Yusuf Ozuysal  <yusufo@google.com>
     2
     3        Don't use double tap zoom if minimum and maximum page scale is the same
     4        https://bugs.webkit.org/show_bug.cgi?id=106272
     5
     6        Reviewed by James Robinson.
     7
     8        We should only try to computed relevant scale and scrollOffset and start the animation
     9        if the page is zoomable. This now creates an undesired animation for mobile pages which
     10        are not zoomable.
     11
     12        * src/WebViewImpl.cpp:
     13        (WebKit::WebViewImpl::handleGestureEvent):
     14
    1152013-01-07  Tony Chang  <tony@chromium.org>
    216
  • trunk/Source/WebKit/chromium/src/WebViewImpl.cpp

    r138859 r139017  
    776776    }
    777777    case WebInputEvent::GestureDoubleTap:
    778         if (m_webSettings->doubleTapToZoomEnabled()) {
     778        if (m_webSettings->doubleTapToZoomEnabled() && m_minimumPageScaleFactor != m_maximumPageScaleFactor) {
    779779            m_client->cancelScheduledContentIntents();
    780780            animateZoomAroundPoint(WebPoint(event.x, event.y), DoubleTap);
Note: See TracChangeset for help on using the changeset viewer.