Permalink
Browse files

FIX: Fixed moving text box in IE

  • Loading branch information...
Tanya Morozova authored and LarsMichelsen committed Jul 24, 2017
1 parent 3f82036 commit beb4604b93ef3cdc98fcc9536eee665d269e1b09
Showing with 2 additions and 2 deletions.
  1. +2 −2 share/frontend/nagvis-js/js/edit.js
@@ -82,8 +82,8 @@ function getDirection(event, el) {
dir = "";
// Handle IE and other browsers
xPos = event.layerX ? event.layerX : event.offsetX ? event.offsetX : 0;
yPos = event.layerY ? event.layerY : event.offsetY ? event.offsetY : 0;
xPos = event.offsetX ? event.offsetX : event.layerX ? event.layerX : 0;
yPos = event.offsetY ? event.offsetY : event.layerY ? event.layerY : 0;
// The distance from the edge in pixels
offset = 8;

0 comments on commit beb4604

Please sign in to comment.