HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.44k stars 528 forks source link

Document option which allows native touch scrolling to work on mobile devices #126

Open fiznool opened 12 years ago

fiznool commented 12 years ago

With iOS5, position:fixed works as expected. We can now have a fixed header and footer with scrolling content between.

If you add a Flotr2 chart to the scrollable content, swiping with your finger over the chart does not scroll the page as expected.

Perhaps Flotr2 is overriding the touchstart / touchmove / touchend events?

fiznool commented 12 years ago

So it seems that there is actually an option that can be set: preventDefault - which does what I want! :)

This doesn't seem to be in the docs at http://www.humblesoftware.com/flotr2/documentation, however, so I've changed the name of the issue to reflect this.

cesutherland commented 12 years ago

Yes, it is overriding those events. Passing preventDefault : false as a configuration option should take care of it.

On Tue, Jul 3, 2012 at 12:56 PM, Tom Spencer < reply@reply.github.com

wrote:

With iOS5, position:fixed works as expected. We can now have a fixed header and footer with scrolling content between.

If you add a Flotr2 chart to the scrollable content, swiping with your finger over the chart does not scroll the page as expected.

Perhaps Flotr2 is overriding the touchstart / touchmove / touchend events?


Reply to this email directly or view it on GitHub: https://github.com/HumbleSoftware/Flotr2/issues/126

cesutherland commented 12 years ago

Got it. More documentation is needed in general!

amitarcher commented 9 years ago

HI Carl, Thanks for such a great library. I am using flotr for my project and its just awesome. Just small request why dont you allow us to modify the documentation , actually incomplete documentation eat lot of dev time. That can support lot others to use this flawless library.