Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cda556736068075939b7b429c415aef864adf9f5
      
https://github.com/WebKit/WebKit/commit/cda556736068075939b7b429c415aef864adf9f5
  Author: Wenson Hsieh <[email protected]>
  Date:   2025-05-24 (Sat, 24 May 2025)

  Changed paths:
    A LayoutTests/fast/events/no-autoscroll-over-content-inset-expected.txt
    A LayoutTests/fast/events/no-autoscroll-over-content-inset.html
    M Source/WebCore/page/EventHandler.cpp

  Log Message:
  -----------
  [macOS] Dragging the Safari window makes page start autoscrolling
https://bugs.webkit.org/show_bug.cgi?id=293517
rdar://151778621

Reviewed by Abrar Rahman Protyasha.

Don't allow autoscrolling to begin, in the case where the mousedown is 
happening outside of the
visual viewport. When obscured content insets are applied, this can happen in 
the case where the
user is clicking and dragging inside one of the inset areas. While this doesn't 
hit-test to any DOM
nodes, it currently still allows autoscrolling to start, which conflicts with 
dragging to move the
window.

Fix this by setting `m_mouseDownMayStartAutoscroll` to `false` in the case 
where the mouse event
location is outside of the visual viewport (which does not include obscured 
content insets).

* LayoutTests/fast/events/no-autoscroll-over-content-inset-expected.txt: Added.
* LayoutTests/fast/events/no-autoscroll-over-content-inset.html: Added.
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::handleMousePressEvent):

Canonical link: https://commits.webkit.org/295392@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to