mdjnelson / moodle-mod_customcert

Enables the creation of dynamically generated certificates with complete customisation via the web browser.
https://moodle.org/plugins/mod_customcert
GNU General Public License v3.0
93 stars 159 forks source link

When dragging something if it overlaps the boundary it snaps back to the start #151

Open brendanheywood opened 6 years ago

brendanheywood commented 6 years ago

If I am dragging something and it cannot be dragged then I'd expect the drag preview to honor the boundary, and if I dragged it further and let go, it would be moved back to within the bounds, rather than fail completely and go back to the start position.

For example if I have an image which I want to be full bleed up against the edge, it's almost impossibly to manually drag it to the edge, it's either not far enough, or it's too far and back to the start.

brendanheywood commented 6 years ago

There is also inconsistency between manually setting the position and the drag. ie you cannot drag an image half way over the boundary even if you want to for something full bleed. Yet if I position it manually, and then try to refine it by dragging I can't change it at all.

I think the best solution here is: