Cropper: Zoom does not work anymore with Chrome on Android devices

Created on 20 Dec 2016  路  7Comments  路  Source: fengyuanchen/cropper

on Android 6.0 with Chrome 55

When zooming even just a tiny pixel it just unzooms way to much and the image & the cropper disappear.

Tested and reproduced with all your examples.

Most helpful comment

As of version 55, Chrome starts to support Pointer Events which causes this problem. I will resolved this soon.

All 7 comments

Same issue here... When I zoom in or zoom out, it totally disappear...

As of version 55, Chrome starts to support Pointer Events which causes this problem. I will resolved this soon.

I cannot fixed this right now, recommend to use the non-jQuery version as this issue had been fixed in that.

  • Cropper.js - the non-jQuery version of Cropper (recommended).

This has been fixed in v3.0.0-alpha.

For those who cannot already migrate to cropper.js and just want a quick fix you can still use this one at this commit 5d9560e84dd49249eb98e873d322e122641aaa32

It's like the v2.3.5 I was hoping.

Sorry for the trouble, this is a breaking change in Chrome 56 to improve scroll performance. This can probably also be fixed by adding an appropriate touch-action CSS rule to disable the browser's own scrolling/zooming.

That's why I was pointing out the commit 5d9560e as a nice v2.3.5 substitute. If you look closely you will find that previous commits include a fix for pointer event and touch-action: none;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niklasravnsborg picture niklasravnsborg  路  5Comments

WillJW picture WillJW  路  3Comments

SimonBriche picture SimonBriche  路  7Comments

sohaibameen picture sohaibameen  路  4Comments

Kendokai picture Kendokai  路  4Comments