LeaVerou / stretchy

Form element autosizing, the way it should be
https://stretchy.verou.me/
Other
1.27k stars 87 forks source link

Bug: incorrect scrollLeft on input in webkits #4

Open kizu opened 9 years ago

kizu commented 9 years ago

When you're writing something in an input in webkits, the input gets the scrollLeft equal to 1, so the text becomes clipped until you'd move a cursor.

Here is a gif demonstrating this problem:

stretchy

LeaVerou commented 9 years ago

Cannot reproduce on either Safari or Chrome. Which browser is this gif from?

kizu commented 9 years ago

This exact one — from Yandex, but I have the same exact issue both in Safari 8.0.7 and Chrome Canary 46.0.2467.0. It's on non-retina Macbook.

kizu commented 9 years ago

Here is a gif from the Chrome, for example:

stretchy2

Yaffle commented 8 years ago

probably, same issue as https://github.com/LeaVerou/stretchy/issues/8 @kizu , could you please say what was the value of window.devicePixelRatio ?

kizu commented 8 years ago

Still reproduces for me at Chrome (Version 51.0.2665.0 canary (64-bit)), but not in Safari (Version 9.0.3 (11601.4.4))

window.devicePixelRatio
1