SeaUrchinBot / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

goog.fx.Dragger #589

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
here is the image

Original comment by dek...@gmail.com on 6 Sep 2013 at 9:33

Attachments:

GoogleCodeExporter commented 9 years ago
Attaching the drag.html file

Original comment by dek...@gmail.com on 6 Sep 2013 at 9:34

Attachments: