Browse Source

fixed mouse x and y position for graph3d tool tips

v3_develop
Alex de Mulder 10 years ago
parent
commit
8998421993
2 changed files with 26208 additions and 26206 deletions
  1. +26205
    -26204
      dist/vis.js
  2. +3
    -2
      lib/graph3d/Graph3d.js

+ 26205
- 26204
dist/vis.js
File diff suppressed because it is too large
View File


+ 3
- 2
lib/graph3d/Graph3d.js View File

@ -1941,8 +1941,9 @@ Graph3d.prototype._onMouseUp = function (event) {
*/
Graph3d.prototype._onTooltip = function (event) {
var delay = 300; // ms
var mouseX = getMouseX(event) - util.getAbsoluteLeft(this.frame);
var mouseY = getMouseY(event) - util.getAbsoluteTop(this.frame);
var boundingRect = this.frame.getBoundingClientRect();
var mouseX = getMouseX(event) - boundingRect.left;
var mouseY = getMouseY(event) - boundingRect.top;
if (!this.showTooltip) {
return;

Loading…
Cancel
Save