Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mobile/Tablet] Make image edit features work with touch #2822

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

juliaroldi
Copy link
Contributor

Enable resize/rotate/crop images using touch events.
TouchWithImages

@@ -420,6 +420,7 @@ export class ImageEditPlugin implements ImageEditor, EditorPlugin {
if (this.imageEditInfo) {
this.startEditing(editor, image, ['resize', 'rotate']);
if (this.selectedImage && this.imageEditInfo && this.wrapper && this.clonedImage) {
const isMobileOrTable = !!editor.getEnvironment().isMobileOrTablet;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also support it for normal PC? Since there are some with touch screens

@juliaroldi juliaroldi merged commit 84bad41 into master Oct 11, 2024
7 checks passed
@juliaroldi juliaroldi changed the title Make image edit features work with touch [Mobile/Tablet] Make image edit features work with touch Oct 11, 2024
@juliaroldi juliaroldi deleted the u/juliaroldi/image-touch branch October 11, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants