|
|
@@ -20,7 +20,7 @@ function HoverListener(coordinateGrid) {
|
|
|
|
|
|
|
|
|
function mouse(ev) {
|
|
|
- _fixUIEvent(ev);
|
|
|
+ _fixUIEvent(ev); // see below
|
|
|
var newCell = coordinateGrid.cell(ev.pageX, ev.pageY);
|
|
|
if (!newCell != !cell || newCell && (newCell.row != cell.row || newCell.col != cell.col)) {
|
|
|
if (newCell) {
|
|
|
@@ -45,7 +45,13 @@ function HoverListener(coordinateGrid) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-function _fixUIEvent(event) { // jQuery 1.7 workaround (for issue 1168)
|
|
|
+
|
|
|
+// this fix was only necessary for jQuery UI 1.8.16 (and jQuery 1.7 or 1.7.1)
|
|
|
+// upgrading to jQuery UI 1.8.17 (and using either jQuery 1.7 or 1.7.1) fixed the problem
|
|
|
+// but keep this in here for 1.8.17 users
|
|
|
+// and maybe remove it down the line
|
|
|
+
|
|
|
+function _fixUIEvent(event) { // for issue 1168
|
|
|
if (event.pageX === undefined) {
|
|
|
event.pageX = event.originalEvent.pageX;
|
|
|
event.pageY = event.originalEvent.pageY;
|