David
David

Reputation: 1760

How to prevent IE from whole-page-zooming when someone "pinches" on touch screen?

I have an element with a line graph in it that I want to be able to handle pinch zooms, so the user can zoom in or out on a certain part of the graph. This works great in every browser except IE11, where instead of zooming the element, it zooms the entire page.

Is there an obvious way to prevent this kind of functionality, so IE allows for pinch-zooming on specific elements? Or maybe there's some way to capture the pinch event, e.preventDefault(), and maybe zoom the graph manually?

I have asked a few other people to try to reproduce the issue, and it seems like it's not a problem on Windows 10... I'm on Windows 7. Could this really be platform dependent? But even if it is, maybe intercepting the events is a good approach? Any suggestions would be greatly appreciated.

Here's an example of a chart where I am having this problem: http://demos.wijmo.com/5/Angular/FlexChartZoom/FlexChartZoom/

Upvotes: 1

Views: 144

Answers (1)

Dan Nagle
Dan Nagle

Reputation: 5425

According to the official documentation, programmatic control of touch and gesture recognition requires Windows 8 or later.

Upvotes: 1

Related Questions