craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 637 forks source link

[5.x]: Crop tool is laggy in Firefox browser #15925

Open gcamacho079 opened 1 month ago

gcamacho079 commented 1 month ago

What happened?

Description

There is a difference in the performance of the cropping tool between browsers.

Steps to reproduce

  1. Open the Image Editor for an image asset in both Chrome and Firefox
  2. Go to the Crop tab and resize the crop rectangle so it can be moved around inside the image canvas
  3. Drag the crop rectangle around the image

Expected behavior

Smooth movement regardless of browser

Actual behavior

In Chrome, the crop movement is smooth. In Firefox, the drag is laggy and sometimes requires multiple drag and drops to achieve the same placement as in Chrome.

Craft CMS version

5.4.8

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

-

andrewhawkes commented 1 month ago

I'm not sure if this is related but I've had a client complaining the crop tool is hard to use on touch devices.

I've just tried on an iPad with the latest version of Craft CMS and it is very inconsistent when you're dragging and cropping by dragging the corners.