Listening to the `onmscontentzoom` event fires even when I pan the image RRS feed

  • Question

  • I am trying to zoom an image (By enabling -ms-content-zooming: zoom in CSS),  and I need to know the size of the image once zooming ends.

    So basically I am listening to onmscontentzoom and setting a isZooming flag to true, and using `MSManipulationStateChanged` to do some logic.

    The problem is that  onmscontentzoom fires even when you pan the image, not only zooming it which is weird. 

    Now I am getting target.msContentZoomFactor and if it's almost the same I don't do anything, but is there a clean way to only firing mscontentzoom when actually zooming only?



    Friday, January 4, 2013 8:32 PM