-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change input caret to a block? #86
Comments
I forgot to say, a blinking block, ofcourse. :D |
there's caret-color and that's about it. generally speaking fucking with the baseline ux elements like text input with javascript is far harder that one thinks. i still frequently see bugs on facebook's version ... Arguably firefox has the api that would make this actually possible in a bug free way https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition ... but yeah, that's about all there is for now. |
as an aside I have put a blocky cursor in just recently ... 46d7de0 around there ... there's not integration, testing, documentation yet but that'll come soon |
Awesome! |
It offsets incorrectly though? Are not all your lines the same height? |
yeah it was only half done yesterday ... the vertical problem has been alleviated by a hack to scroll to the character start (essentially by adding negative padding when the scrolling happens, keeping the content aligned) see 144a490 This feature fixes the other issue. The horizontal alignment hasn't been addressed. |
also I'll need to revisit this code and do requestAnimationFrame, which is apparently how this is supposed to be done these days so as to not pester complicated sites with a bunch of redraws. |
I pulled that off here: http://9ol.es/tmp/demo.html but it takes some javascript hackery to make it work. |
Oldschool terminals didn't use a line as an input caret but a block, could this be implemented?
The text was updated successfully, but these errors were encountered: