When use snappable property dragging moveable element appear virtual line shadow, then disappear
See original GitHub issueEnvironments
- Framework name: Vue
- Framework version: 2.6.13
- Moveable Component version: 0.27.2 moveable
- Testable Address(optional):
Description
Hi @daybrush ,
When use snappable property, dragging moveable element appear virtual line shadow, after a few seconds disappear, but i don’t know why, please give me a help…
The following is my moveable config:
this.moveable = new Moveable(this.canvasViewer.getViewport(), {
draggable: true,
resizable: false,
keepRatio: false,
origin: false,
throttleDrag: 0,
throttleResize: 0,
snappable: true,
horizontalGuidelines: this.horizontalGuides?.getGuides(),
verticalGuidelines: this.verticalGuides?.getGuides(),
snapThreshold: 5,
isDisplaySnapDigit: true,
snapGap: true,
snapDirections: { left: true, top: true, right: true, bottom: true, center: true, middle: true },
elementSnapDirections: { left: true, top: true, right: true, bottom: true, center: true, middle: true },
elementGuidelines: [],
snapDigit: 0,
}).on('clickGroup', (e: OnClickGroup) => this.onClickGroup(e))
.on('dragStart', (e: OnDragStart) => this.onDragStart(e))
.on('drag', (e: OnDrag) => this.onDrag(e))
.on('dragEnd', (e: OnDragEnd) => this.onDragEnd(e))
The phenomenon of my situation…
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Using the HTML5 Drag and Drop API - web.dev
The HTML5 Drag and Drop API means that we can make almost any element on our page draggable. In this post we'll explain...
Read more >Adjust corner radius and smoothing – Figma Help Center
Corner radius rounds the corner where two lines meet. Use this to create shapes with rounded corners. Corner smoothing adjusts a rounded corner...
Read more >Drag operations - Web APIs - MDN Web Docs - Mozilla
When an image or link is dragged, the URL of the image or link is set as the drag data, and a drag...
Read more >How to use rulers, grids, and guides in Illustrator
To snap objects to gridlines, choose View > Snap To Grid, select the object you want to move, and drag it to the...
Read more >Grid snapping - Unity - Manual
Moving the grid to the handle of a Game Object ... From the grid visibility drop-down menu ( ) in the Grid and...
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
Pasting what i mentioned in the other related issue: “I’ve seen similar artifacts with animation libraries and I learned that the solution was to add “will-change: transforms;” to anything i planned on animating. maybe that also applies here?”
@John-K-2012 @chenp1204 @helson-lin
Try adding
outline: 1px solid transparent;
css to your targets.https://github.com/daybrush/moveable/issues/805#issuecomment-1335668498