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

New Feature Request: Add an option to toggle overlay on click #16

Open
tommyc38 opened this issue Apr 2, 2020 · 0 comments
Open

New Feature Request: Add an option to toggle overlay on click #16

tommyc38 opened this issue Apr 2, 2020 · 0 comments

Comments

@tommyc38
Copy link

tommyc38 commented Apr 2, 2020

It would be great if you could toggle the overlay off by tapping on it (not the resize handles of course). The motivation behind this is that, more often than not, when you load an image, it will take up the entire editor width. If your editor container has a constrained height and the image causes the container to overflow, you won't be able to scroll while the overlay is shown since you are trying to scroll the overlay. In short, when images are that big, its difficult to find the area to scroll as well as hide the overlay. Hopefully that makes sense.

I think this would be fairly easy if you change the overlay HTML by adding a div in the current container that acts as the overlay click handler. The divs representing the resize handles would then need to be laid on top and likely made larger for better click/touch targets to resize without accidentally toggling off the overlay.

Awesome library and very well written! Thank you so much.

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

No branches or pull requests

1 participant