From 85b520a6bcb4dc8483eeb98c9fbf50b570ec4556 Mon Sep 17 00:00:00 2001 From: MasterGordon Date: Sun, 18 Mar 2018 21:15:11 +0100 Subject: [PATCH] Moved Box Vars --- js/userinterface.js | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/js/userinterface.js b/js/userinterface.js index f9b4f1d..8d073a7 100644 --- a/js/userinterface.js +++ b/js/userinterface.js @@ -10,25 +10,6 @@ $(document).ready(function() { }) }) -var screenleftpos = 0 -var screentoppos = 0 - -var infoleftpos = 0 -var itemcounttoppos = 0 - -var cursorScreenX = -1 -var cursorScreenY = -1 - -var cursorItemCountX = -1 -var cursorItemCountY = -1 - -var cursorInfoX = -1 -var cursorInfoY = -1 - -var isCursorInScreen = true -var isCursorInItemCount = true -var isCursorInInfo = true - function style() { var screenMarginTop = window.innerHeight - 912 var screenMarginLeft = (window.innerWidth - 1200) / 2 @@ -54,6 +35,26 @@ function pxToInt(px) { } //SELECTION UND BOX TRACKING + +var screenleftpos = 0 +var screentoppos = 0 + +var infoleftpos = 0 +var itemcounttoppos = 0 + +var cursorScreenX = -1 +var cursorScreenY = -1 + +var cursorItemCountX = -1 +var cursorItemCountY = -1 + +var cursorInfoX = -1 +var cursorInfoY = -1 + +var isCursorInScreen = true +var isCursorInItemCount = true +var isCursorInInfo = true + function onDocumentMouseMove(event) { var mX = event.clientX - screenleftpos;