• David Tseng's avatar
    Handle user sticky mode toggles during smart sticky mode · 797924d6
    David Tseng authored
    Here's another corner case.
    
    Suppose a user toggles (either on or off) sticky mode while over an editable.
    
    We need to ensure that, even if the user continues to move around the editable or any related nodes of the editable, that we don't interfere with sticky mode state.
    
    For example, a user turns on sticky mode while over a content editable. The user navigates by character or word. This would trigger a change in the current range and potentially turn back off sticky mode.
    
    RELNOTES: n/a
    Change-Id: I728060fb30beaa0697b7078332201ed1bee45ecf
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2142712
    Commit-Queue: David Tseng <dtseng@chromium.org>
    Reviewed-by: default avatarAkihiro Ota <akihiroota@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#757848}
    797924d6
automation.js 61.3 KB