Mobile and desktop drag and drop
This Canvas project works beautifully on the desktop, but I need to enable a user to drag and drop the bar on a tablet or mobile device as well. I've seen several related posts, but none of those suggestions are working for me. I have made several substitutions for "pressmove" such as touchstart, touchmove, but doing so breaks the desktop function before I've had a chance to test on tablets.
var startDrag = startDragF.bind(this);
this.Bar.addEventListener("pressmove", startDrag);
function startDragF(e){
var p = stage.globalToLocal(e.stageX, e.stageY);
e.currentTarget.y = p.y;
};
