Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 11d18b9d064f2f939ee6aecfedfc33c64908ff48
      
https://github.com/WebKit/WebKit/commit/11d18b9d064f2f939ee6aecfedfc33c64908ff48
  Author: Joanne Pan <[email protected]>
  Date:   2026-03-30 (Mon, 30 Mar 2026)

  Changed paths:
    M 
LayoutTests/fast/events/touch/ios/touch-event-regions-layer-tree/range-sliders.html
    A LayoutTests/fast/forms/ios/drag-range-track-expected.txt
    A LayoutTests/fast/forms/ios/drag-range-track.html
    M 
LayoutTests/interaction-region/form-control-refresh/slider-thumb-native-interaction-region-expected.txt
    M LayoutTests/interaction-region/input-type-range-region-expected.txt
    M LayoutTests/platform/ios/TestExpectations
    M Source/WebCore/html/shadow/SliderThumbElement.cpp
    M Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm

  Log Message:
  -----------
  nba.com: Unable to scrub volume slider using gaze and pinch [visionOS] and 
touch [iPadOS]
https://bugs.webkit.org/show_bug.cgi?id=310228
rdar://147428926

Reviewed by Aditya Keerthi.

The problem was that when the user touches a <input type="range">,
the touch had to land precisely on the thumb point of the slider
for it to work (very hard to achieve).
The fix matches UIKit's UISlider behaviour,
it expands the thumb's touch hit area by 12.5pt if the
thumb is smaller than 48pt in either dimension.

Test generated with assistance from Claude.

Test: fast/forms/ios/drag-range-track.html

* 
LayoutTests/fast/events/touch/ios/touch-event-regions-layer-tree/range-sliders.html:
* LayoutTests/fast/forms/ios/drag-range-track-expected.txt: Added.
* LayoutTests/fast/forms/ios/drag-range-track.html: Added.
* 
LayoutTests/interaction-region/form-control-refresh/slider-thumb-native-interaction-region-expected.txt:
* LayoutTests/interaction-region/input-type-range-region-expected.txt:
* LayoutTests/platform/ios/TestExpectations:
* Source/WebCore/html/shadow/SliderThumbElement.cpp:
(WebCore::SliderThumbElement::handleTouchStart):
* Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm:
(WebCore::RenderThemeCocoa::inflateRectForInteractionRegion):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to