Mobile Safari - Input caret does not scroll along with overflow-scrolling: touch

gabrielmaldi

I know that Mobile Safari won't fire events while in "momentum" (-webkit-overflow-scrolling: touch;) scrolling. But this is not entirely the same thing, because Safari handles the (blinking) caret of an input internally.

<div id="container">
    <input type="text" />
    <div class="filling"></div>
</div>

#container {
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 50%;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    border: 1px solid black;
}

input {
    margin-top: 60vh;
}

.filling {
    height: 200vh;
}

Try this fiddle on your device (focus the input and then scroll): https://jsfiddle.net/gabrielmaldi/n5pgedzv

The issue also happens when you keep your finger pressed (i.e. not only when giving it momentum and releasing): the caret fails to scroll.

Obviously I don't want to turn off overflow scrolling, if there's no way to fix the caret so it will scroll correctly, it would be OK to hide it.

Thanks

gabrielmaldi

This is indeed a WebKit bug and there seems to be no known workaround.

@cvrebert filed the bug:

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Mobile Safari - Input caret does not scroll along with overflow-scrolling: touch

From Dev

iOS8 Safari -webkit-overflow-scrolling: touch; issue

From Dev

Mobile web: -webkit-overflow-scrolling: touch conflicts with position:fixed

From Dev

Safari - IPAD - Disable bounce (no scroll) without -webkit-overflow-scrolling

From Dev

Safari - IPAD - Disable bounce (no scroll) without -webkit-overflow-scrolling

From Dev

Scrolling slow on mobile/ios when using overflow:Scroll

From Dev

Bootstrap modal not scrolling with overflow: scroll

From Dev

iOS Safari appears to never fire scroll event if the element under mouse has only "overflow-y: scroll" and scrolling horizontally

From Dev

iOS Safari appears to never fire scroll event if the element under mouse has only "overflow-y: scroll" and scrolling horizontally

From Dev

Touch input on mobile device

From Dev

Better/Faster scrolling in mobile safari?

From Dev

iOS: -webkit-overflow-scrolling:touch and scrollTop

From Dev

-webkit-overflow-scrolling: touch on android

From Dev

allow touch scrolling in case of overflow hidden

From Dev

Mobile Safari scroll momentum not working

From Dev

Vertical scroll not working on Mobile Safari

From Dev

-webkit-overflow-scrolling: touch kills overflow: hidden

From Dev

Position fixed sidebar with overflow scroll not scrolling to bottom

From Dev

Google maps iframe disable scrolling touch on mobile

From Dev

Overflow-x value ignored in mobile safari

From Dev

Pull up keyboard while scrolling UITableView and scroll along with the tableView

From Dev

How to add a button which scroll along with the user scrolling?

From Dev

iOS8 webkit-overflow-scrolling:touch with overlay

From Dev

Scrolling not working in div which has overflow property set to scroll

From Dev

div overflow scroll: when scrolled to bottom, content starts scrolling

From Dev

Why does Safari Mobile have trouble handling many input fields on iOS 8

From Dev

Controlling a player using touch input on the mobile device

From Dev

Controlling a player using touch input on the mobile device

From Dev

UITextView does not detect touch input

Related Related

  1. 1

    Mobile Safari - Input caret does not scroll along with overflow-scrolling: touch

  2. 2

    iOS8 Safari -webkit-overflow-scrolling: touch; issue

  3. 3

    Mobile web: -webkit-overflow-scrolling: touch conflicts with position:fixed

  4. 4

    Safari - IPAD - Disable bounce (no scroll) without -webkit-overflow-scrolling

  5. 5

    Safari - IPAD - Disable bounce (no scroll) without -webkit-overflow-scrolling

  6. 6

    Scrolling slow on mobile/ios when using overflow:Scroll

  7. 7

    Bootstrap modal not scrolling with overflow: scroll

  8. 8

    iOS Safari appears to never fire scroll event if the element under mouse has only "overflow-y: scroll" and scrolling horizontally

  9. 9

    iOS Safari appears to never fire scroll event if the element under mouse has only "overflow-y: scroll" and scrolling horizontally

  10. 10

    Touch input on mobile device

  11. 11

    Better/Faster scrolling in mobile safari?

  12. 12

    iOS: -webkit-overflow-scrolling:touch and scrollTop

  13. 13

    -webkit-overflow-scrolling: touch on android

  14. 14

    allow touch scrolling in case of overflow hidden

  15. 15

    Mobile Safari scroll momentum not working

  16. 16

    Vertical scroll not working on Mobile Safari

  17. 17

    -webkit-overflow-scrolling: touch kills overflow: hidden

  18. 18

    Position fixed sidebar with overflow scroll not scrolling to bottom

  19. 19

    Google maps iframe disable scrolling touch on mobile

  20. 20

    Overflow-x value ignored in mobile safari

  21. 21

    Pull up keyboard while scrolling UITableView and scroll along with the tableView

  22. 22

    How to add a button which scroll along with the user scrolling?

  23. 23

    iOS8 webkit-overflow-scrolling:touch with overlay

  24. 24

    Scrolling not working in div which has overflow property set to scroll

  25. 25

    div overflow scroll: when scrolled to bottom, content starts scrolling

  26. 26

    Why does Safari Mobile have trouble handling many input fields on iOS 8

  27. 27

    Controlling a player using touch input on the mobile device

  28. 28

    Controlling a player using touch input on the mobile device

  29. 29

    UITextView does not detect touch input

HotTag

Archive