free-transform icon indicating copy to clipboard operation
free-transform copied to clipboard

Add support for "disableTranslate" to translate with top and left values instead of css transform>translate. (similar to disableScale)

Open Smashr opened this issue 6 years ago • 1 comments

Hey,

So I've been working with the library for a few days now. Its great !

I feel there is a need to add a "disableTranslate" option as well, so that the 'scale' and 'translate' functions will translate the element with 'top' and 'left' css values.

Most 'draggable' plugins use 'top' and 'left' values instead of translate, so its definitely helpful when migrating from a draggable implementation. Also, when there is an option to position an absolute div with 'left' and 'top' values, it is usually unnecessary to use translate.

Thank you for the awesome library.

Smashr avatar Apr 13 '19 20:04 Smashr

Great point. I have similar problem implementing it inside my code.

notAPanda avatar Jul 11 '19 19:07 notAPanda