Changeset 245055 in webkit
- Timestamp:
- May 8, 2019 8:46:36 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r245053 r245055 1 2019-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 1 13 2019-05-08 Rob Buis <rbuis@igalia.com> 2 14 -
trunk/Source/WebKit/UIProcess/gtk/GestureController.cpp
r235529 r245055 35 35 using namespace WebCore; 36 36 37 static const double maximumZoom = 3.0; 38 37 39 GestureController::GestureController(GtkWidget* widget, std::unique_ptr<GestureControllerClient>&& client) 38 40 : m_client(WTFMove(client)) … … 215 217 if (zoomGesture->m_scale < 1.0) 216 218 zoomGesture->m_scale = 1.0; 219 if (zoomGesture->m_scale > maximumZoom) 220 zoomGesture->m_scale = maximumZoom; 217 221 218 222 zoomGesture->m_viewPoint = zoomGesture->center();
Note: See TracChangeset
for help on using the changeset viewer.