What steps will reproduce the problem?
1. open - http://closure-library.googlecode.com/git/closure/goog/demos/drag.html
2. modify setZ to
function setZ(e) {
this.target.style.zIndex = Z++;
goog.style.setOpacity(this.target, 0.50);
var dragger = this;
var logmsg = logmsg + ' ---- DRAG START -----\n';
logmsg = logmsg + ' dragger.deltaX '+dragger.deltaX +'\n';
logmsg = logmsg + ' dragger.deltaY ' + dragger.deltaY +'\n';
logmsg = logmsg + ' dragger.clientX ' + dragger.clientX +'\n';
logmsg = logmsg + ' dragger.clientY ' + dragger.clientY +'\n';
logmsg = logmsg + ' dragger.startX ' + dragger.startX +'\n';
logmsg = logmsg + ' dragger.startY ' + dragger.startY +'\n';
console.log(logmsg);
}
3. now just click - no drag and you will see the msg logs deltaY or deltaX =0
where as 2nd msg is right ( i mean it has all correct values)
is this is designed like this ?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Note: we cannot accept patches without the contributor license agreement
being signed. See http://code.google.com/p/closure-
library/wiki/Contributors for more info.
Original issue reported on code.google.com by dek...@gmail.com on 6 Sep 2013 at 9:28
Original issue reported on code.google.com by
dek...@gmail.com
on 6 Sep 2013 at 9:28