Reputation: 1
I want to get animation object.location in gwd when drag other object . Animation Object is moving y axis and drag item is waiting to get that animation object x axis. What should I do ?
Dragstart code event
gwd.dragger = this; event = (event.changedTouches ? event.changedTouches[0] : event); gwd.s = window.getComputedStyle ? getComputedStyle(this, null) : this.currentStyle; gwd.dX = event.pageX - parseInt(gwd.s["left"]); gwd.dY = event.pageY - parseInt(gwd.s["top"]);
Dragmove drag event
if (gwd.dragger) { event = (event.changedTouches ? event.changedTouches[0] : event); gwd.actions.events.setInlineStyle(gwd.dragger.id, "left:" + (event.pageX - gwd.dX) + "px; top:" + (event.pageY - gwd.dY) + "px"); }
Dragstop event
gwd.dragger = null;
I want to get animated item left and top values pixel when drag
You can see this my ads.
Upvotes: 0
Views: 57