Daybrush (Younkue Choi)
Daybrush (Younkue Choi)
Could you try setting the rootContainer to no scaled container? ```tsx ```
@MuhammadFadhil10 Could you try using `transform: scale(value)` instead of the `scale` property?
@MuhammadFadhil10 If it doesn't work, is there any codesandbox I can test?
@hqiaozhang So did you use `rootContainer` together? Transform should not be used outside of the rootContainer.
@srdjan-stanisic I made a demo that works similarly to other editors by making it a separate module. https://daybrush.com/moveable/storybook2/?path=/story/combination-with-other-components--use-selecto-with-multiple-group ```tsx { if (!e.moveableTarget) { setSelectedTargets([]); return; } if (e.isDouble) { const...
@thomaslic When setting elementGuidelines, I made sure to exclude only targets. https://github.com/daybrush/scena/blob/4bcb4f9ff58b711df22f9673da4e352270baf51e/packages/react-editor/src/Editor/components/MoveableManager.tsx#L56-L60 ```js const flattenSelectedLayers = layerManager.toFlatten(selectedLayers); const elementGuidelines: Array = [ ".scena-viewport", ...layers.filter(layer => !flattenSelectedLayers.includes(layer)).map(layer => layer.ref), ]; ```
@Larthas Try calling the `e.preventDrag()` function in the `onDragStart` event.
@fanterxissss I don't know what's going on, so is there a video or demo? There was one performance improvement to ignore the invisible DOM.
@framesbyharsh Sorry. The timeline has not been applied yet.
@ronny-lark I haven't done much development yet because I don't have time to develop it. However, the code that uses moveable in the editor could be as follows. https://github.com/daybrush/scena/blob/master/packages/react-editor/src/Editor/editorComponents/InfiniteViewerManager.tsx https://github.com/daybrush/scena/blob/master/packages/react-editor/src/Editor/editorComponents/MoveableManager.tsx