framework7

Open full view…

Pinch zoom android

thelight
Tue, 24 Jan 2017 23:25:37 GMT

When I pinch zoom in and I want to zoom more, if I pinch again it resets the image. Anybody have any ideas on what to do?

NikolayKuznetsov
Thu, 26 Jan 2017 04:01:39 GMT

Is it on android only???

thelight
Thu, 26 Jan 2017 14:53:56 GMT

yes

levinbrega
Wed, 17 May 2017 23:12:02 GMT

Same issue here! Any help??

gianlucarotondo
Wed, 02 Aug 2017 16:16:52 GMT

This problem has not yet been solved on Android (Chrome)? This issue can be reproduced simply by going to http://framework7.io/docs-demos/photo-browser.html

francis6425
Sat, 28 Oct 2017 02:45:49 GMT

The problem is still not solved yet. It is linked to the code in framework7.js which returns and not continue to update the scale. I've tried commenting it out and it works. But I don't know whats the logic for having this in he code in the first place. I've log the issue at https://github.com/framework7io/Framework7/issues/1930 onGestureEnd: function (e) { var z = s.zoom; if (!s.support.gestures) { if (e.type !== 'touchend' || (e.type === 'touchend' && e.changedTouches.length < 2)) { // return; } } if (!z.gesture.image || z.gesture.image.length === 0) return; z.scale = Math.max(Math.min(z.scale, z.gesture.zoomMax), s.params.zoomMin); z.gesture.image.transition(s.params.speed).transform('translate3d(0,0, 0) scale(' + z.scale + ')'); z.currentScale = z.scale; z.isScaling = false; if (z.scale === 1) z.gesture.slide = undefined; },