Skip to content

Commit

Permalink
Update previewbox.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bombasticSlacks committed Dec 7, 2023
1 parent ff3b15f commit e28be17
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions Game/assets/js/previewbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Previewbox
*
* Copyright (C) 2013 Fischer Liu | MIT license | https://github.com/Fischer-L/previewbox
*
* Modified by Dillon Matchett for bombasticGames RPGs
*******************************************************************************************/
var previewbox = (function () {
"use strict";
Expand Down Expand Up @@ -1174,30 +1176,7 @@ var previewbox = (function () {
break;

case _CONST.modeMobile:
// Let _a_openPreviewMobile handle
break;
}
}
},

_a_openPreviewMobile = function (e) {

e = _normalizeEvent(e);

if (_isHref(a.href)) {

switch (_getAppropriateMode()) {

case _CONST.modePC:
// Let _a_openPreviewPC handle
break;

case _CONST.modeMobile:

e.preventDefault();

_showBoxMobile(a);

// Don't want anything to happen with mobile
break;
}
}
Expand All @@ -1219,7 +1198,6 @@ var previewbox = (function () {

_addEvent(a, "mouseout", _a_closePreviewPC);
_addEvent(a, "mouseover", _a_openPreviewPC);
_addEvent(a, "click", _a_openPreviewMobile);
}
return a;
},
Expand Down

0 comments on commit e28be17

Please sign in to comment.