Changeset 245055 in webkit


Ignore:
Timestamp:
May 8, 2019 8:46:36 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Pinch Zooming has no maximum
https://bugs.webkit.org/show_bug.cgi?id=194865

Patch by Alexander Mikhaylenko <exalm7659@gmail.com> on 2019-05-08
Reviewed by Michael Catanzaro.

Set maximum zoom to 3.0, reflecting the value on macOS and iOS.

  • UIProcess/gtk/GestureController.cpp:

(WebKit::GestureController::ZoomGesture::scaleChanged):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r245053 r245055  
     12019-05-08  Alexander Mikhaylenko  <exalm7659@gmail.com>
     2
     3        [GTK] Pinch Zooming has no maximum
     4        https://bugs.webkit.org/show_bug.cgi?id=194865
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Set maximum zoom to 3.0, reflecting the value on macOS and iOS.
     9
     10        * UIProcess/gtk/GestureController.cpp:
     11        (WebKit::GestureController::ZoomGesture::scaleChanged):
     12
    1132019-05-08  Rob Buis  <rbuis@igalia.com>
    214
  • trunk/Source/WebKit/UIProcess/gtk/GestureController.cpp

    r235529 r245055  
    3535using namespace WebCore;
    3636
     37static const double maximumZoom = 3.0;
     38
    3739GestureController::GestureController(GtkWidget* widget, std::unique_ptr<GestureControllerClient>&& client)
    3840    : m_client(WTFMove(client))
     
    215217    if (zoomGesture->m_scale < 1.0)
    216218        zoomGesture->m_scale = 1.0;
     219    if (zoomGesture->m_scale > maximumZoom)
     220        zoomGesture->m_scale = maximumZoom;
    217221
    218222    zoomGesture->m_viewPoint = zoomGesture->center();
Note: See TracChangeset for help on using the changeset viewer.