luk3yx / minetest-formspec-editor

A web-based formspec editor for Minetest.
https://luk3yx.gitlab.io/minetest-formspec-editor/
GNU Affero General Public License v3.0
9 stars 0 forks source link

Add dragging bounds #2

Closed rubenwardy closed 3 years ago

rubenwardy commented 4 years ago

The ability to move an element by dragging it in the center, and resize using the corners

image

This isn't impossible to implement manually, but there are also libraries available if you're using HTML DOM elements for the GUI

Perhaps: https://interactjs.io/ Or: https://jqueryui.com/resizable/