You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const dragHandler = ({ movement: [x, y], dragging }) => {
if(dragging) {
console.log("moving")
console.log({ x, y })
imageConfiguration.value.top += y
imageConfiguration.value.left += x
}
}
the dragging event fires only about 2 to 4 times and doesnt continue.
For example when i use standart eventListener to the same element, the event fires for each pixel that I dragged. But here it completely lags and I cant use it.
Can someone help me with what am I doing wrong? Or do I misunderstand the usage?
For the whole picture, I use then the imageConfiguration to create style for the element I want to drag ->
Update: the example used works, but under verystrange conditions. It works, if I double tap the wanted object and I have to literally push the trackpad. I cannot just double-tap it...
And what is also strange - demo "MultiGesture.vue" works for me just fine without any mistakes...but the code is same.
When I use onDrag like following:
with following handler:
the dragging event fires only about 2 to 4 times and doesnt continue.
For example when i use standart eventListener to the same element, the event fires for each pixel that I dragged. But here it completely lags and I cant use it.
Can someone help me with what am I doing wrong? Or do I misunderstand the usage?
For the whole picture, I use then the
imageConfiguration
to create style for the element I want to drag ->The text was updated successfully, but these errors were encountered: