Skip to content
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

fix getScrollLeftTop #2128

Merged
merged 2 commits into from
Jun 11, 2015
Merged

fix getScrollLeftTop #2128

merged 2 commits into from
Jun 11, 2015

Conversation

asturur
Copy link
Member

@asturur asturur commented Apr 19, 2015

original fiddle
http://jsfiddle.net/mcannon/6sksLp30/3/

In the fiddle there is a particular situation of fixed absolute and scrollabled divs.

modified fiddle with fabric 1.5.0 ad ovverridden function.
http://jsfiddle.net/6sksLp30/11/

Need some more testing with all the combination of scrollable div absolute and fixed position.

closes #1821

@asturur
Copy link
Member Author

asturur commented May 5, 2015

http://jsfiddle.net/asturur/6sksLp30/12/

i added more complex scroll option and simpler function. it works good

http://fabricjs.com/test/misc/position.html

@asturur
Copy link
Member Author

asturur commented Jun 8, 2015

after a brief discussion in #1821 i think we can merge this.

@kangax
Copy link
Member

kangax commented Jun 8, 2015

We need a failing test in misc/position

@asturur
Copy link
Member Author

asturur commented Jun 8, 2015

In the fabricjs.com?

I can replicate this if needed:
http://jsfiddle.net/asturur/7fsw81mp/5/
is enough small now

@kangax
Copy link
Member

kangax commented Jun 8, 2015

Yep, on fabrics.com. Just so that we can have a full set of functional tests to makes sure scrolling and all the other cases work.

@asturur
Copy link
Member Author

asturur commented Jun 8, 2015

cannot wait to play with jekyll again.... 🍶

@asturur
Copy link
Member Author

asturur commented Jun 9, 2015

to reproduce same problem i need an iframe, is this ok for you?

@kangax
Copy link
Member

kangax commented Jun 9, 2015

of course :)

@asturur
Copy link
Member Author

asturur commented Jun 11, 2015

fabricjs/fabricjs.com#84

Here is PR with test for it, it is failing actually.

@asturur asturur added this to the 1.5.1 milestone Jun 11, 2015
kangax added a commit that referenced this pull request Jun 11, 2015
@kangax kangax merged commit 2d2712c into fabricjs:master Jun 11, 2015
@kangax
Copy link
Member

kangax commented Jun 11, 2015

+changelog

@asturur asturur deleted the pointer-in-scrollable branch June 26, 2015 10:39
@asturur asturur restored the pointer-in-scrollable branch June 26, 2015 10:39
@asturur asturur deleted the pointer-in-scrollable branch June 26, 2015 10:52
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.

Canvas pointer position is wrong when in a scrollable div
2 participants