Skip to content

Follow scroll on clone element#16

Open
tokland wants to merge 4 commits into
erming:gh-pagesfrom
tokland:gh-pages
Open

Follow scroll on clone element#16
tokland wants to merge 4 commits into
erming:gh-pagesfrom
tokland:gh-pages

Conversation

@tokland

@tokland tokland commented Mar 24, 2015

Copy link
Copy Markdown

This solves #10 for me.

@tokland

tokland commented Apr 14, 2015

Copy link
Copy Markdown
Author

I also need this:

source.bind("scroll change", function() {

@erming

erming commented Sep 16, 2015

Copy link
Copy Markdown
Owner

Hey! Sorry for being so insanely late. I've been having some IRL issues. Hope it's OK.

Anyway, I just took a peek at the commit. Unfortunately, it didn't work for me.

Looks like this:
not_working

I'm using latest version of Chrome (version 45). The function (follow_scroll() triggers but it seems that .scrollLeft() on the clone doesn't work.

@tokland

tokland commented Sep 17, 2015

Copy link
Copy Markdown
Author

Hi! Hope all is well. My bad, I was only using textareas on my site, apparently the "scroll" event does not fire for text inputs. I've added more events (ugly, but I don't see any other way). d6fbb1e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants