[Webkit-unassigned] [Bug 241737] New: Hover to scroll doesn't work in Webkit (Apple engineer told me to submit as a bug)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 17 18:26:40 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241737

            Bug ID: 241737
           Summary: Hover to scroll doesn't work in Webkit (Apple engineer
                    told me to submit as a bug)
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: emory.fierlinger at gmail.com

I have a dynamic horizontal slider on a website, half way down this page: https://www.eightyone.co.nz/projects/safe-night-a-thon

When a user hovers over the left/right arrows, the browser is supposed to slowly move them along the slider. This works in both Chrome and Firefox, but not Webkit/Safari.

After talking with Apple engineers at WWDC22, they have diagnosed this as a Webkit bug, and have told me to file it as such here. Here is the code:

var amount = '';

function scroll() {
  $('#horizontal-scroll-parent').animate({
    scrollLeft: amount
  }, 25, 'linear', function() {
    if (amount != '') {
      scroll();
    }
  });
}
$('#next').hover(function() {
  amount = '+=25';
  scroll();
}, function() {
  amount = '';
});
$('#back').hover(function() {
  amount = '-=25';
  scroll();
}, function() {
  amount = '';
});

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220618/41efb368/attachment.htm>


More information about the webkit-unassigned mailing list