Question: Why is there no OnDragOriginStart.set, OnRoundStart.set
See original GitHub issueEnvironments
- Framework name: VanillaJS
- Moveable Component version: 0.41.1
Description
Moveable currently initializes the drag origin of a given target at the current value they have set for transformOrigin
, defaulting to 50%, 50%
. The same goes for border radius
and roundable.
Would adding in e.set
to these two be useful?
dragOriginStart (e) {
const state = getState(e.target)
e.set(state.origin) // <--
e.dragStart && e.dragStart.set(state.translate)
},
Issue Analytics
- State:
- Created 9 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Issues · daybrush/moveable - GitHub
Trigger Resize Event on the corner Scaling Buttons renderDirections: ['nw', ... Question: Why is there no OnDragOriginStart.set, OnRoundStart.set question ...
Read more >Home - Documentation - Daybrush
Features. Draggable refers to the ability to drag and move targets. Resizable indicates whether the target's width and height can be increased or...
Read more >Daybrush Moveable Issues - IssueHint
Question: Why is there no OnDragOriginStart.set, OnRoundStart.set, open, 5, 2022-12-07, 2022-12-11. Shake during resize with transform scale and guidelines ...
Read more >Daybrush (Younkue Choi) moveable Issues - Giters
Trigger Resize Event on the corner Scaling Buttons renderDirections: ['nw', 'ne', ... Question: Why is there no OnDragOriginStart.set, OnRoundStart.set.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SidIcarus
This is a demo created in the first step of creating Moveable.
So, the usage has changed a bit.
The demo is also in the process of being changed.
https://daybrush.com/moveable/storybook2
@SidIcarus
Although it seems to be rarely used,
set
is called internally with the default value.Perhaps in the next version there will be a simpler usage.