⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280501 in webkit


Ignore:
Timestamp:
Jul 30, 2021, 4:04:07 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Add spacebar functionality for macOS smooth scrolling
https://bugs.webkit.org/show_bug.cgi?id=228155

Patch by Dana Estra <destra@apple.com> on 2021-07-30
Reviewed by Tim Horton.

Fixed bug that was causing spacebar events to return false from beginKeyboardScrollGesture.

Manually tested on webpage.

  • platform/KeyboardScrollingAnimator.cpp:

(WebCore::KeyboardScrollingAnimator::beginKeyboardScrollGesture):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r280498 r280501  
     12021-07-30  Dana Estra  <destra@apple.com>
     2
     3        Add spacebar functionality for macOS smooth scrolling
     4        https://bugs.webkit.org/show_bug.cgi?id=228155
     5
     6        Reviewed by Tim Horton.
     7       
     8        Fixed bug that was causing spacebar events to return false from beginKeyboardScrollGesture.
     9
     10        Manually tested on webpage.
     11
     12        * platform/KeyboardScrollingAnimator.cpp:
     13        (WebCore::KeyboardScrollingAnimator::beginKeyboardScrollGesture):
     14
    1152021-07-30  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebCore/platform/KeyboardScrollingAnimator.cpp

    r280492 r280501  
    231231    m_currentKeyboardScroll = scroll;
    232232
    233     if (event.type() != eventNames().keydownEvent)
     233    if (!(event.type() == eventNames().keydownEvent || event.type() == eventNames().keypressEvent))
    234234        return false;
    235235
Note: See TracChangeset for help on using the changeset viewer.