Open fuj1w4r4 opened 6 years ago
forget it, I got the answer.
var draggable = document.querySelector('#image1[click-drag]');
var x=1;
draggable.addEventListener('dragstart', function(dragInfo) {
console.log("dragstart:", dragInfo);
//TODO...
});
hi there,
Is there such ondrag event i can use? for example, I know that AFRAME provided event for object such on click event.
Please provide more example of API usage. I find this library is useful.
Thanks and regards, Fuji