Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove lines that are irrelevant now

  • Loading branch information...
commit 70fa1b18cc63af8b6ef55bb5911076ad7e4bfd73 1 parent db7d67d
Wojciech Ryrych authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 widget/lib/jquery.ui.rlightbox.js
View
5 widget/lib/jquery.ui.rlightbox.js
@@ -1360,9 +1360,6 @@ $.extend($.ui.rlightbox, {
// cursor was ‘pointer’, [Z] buttons was pressed (‘default’ cursor)
// [Z] was pressed again → cursor is still ‘pointer’
this.setCursor();
-
- // fixes Panorama-hold mouse-Z-mouse up bug(?)
- data.side = "";
},
panoramaStart: function( event ) {
@@ -1526,7 +1523,7 @@ $.extend($.ui.rlightbox, {
_isError = data.showErrorMessage;
if ( data.ready ) {
- if ( (_currentSet === "single" || _totalElements === 1 || (_currentElement === 1 && _side === "left" || _side === "") || (_currentElement === _totalElements && _side === "right" || _side === "")) && _panoramaEnabled === false && (_setElement === "image" || (_setElement !== "image" && _isError)) ) {
+ if ( (_currentSet === "single" || _totalElements === 1 || _currentElement === 1 && _side === "left" || _currentElement === _totalElements && _side === "right") && _panoramaEnabled === false && (_setElement === "image" || (_setElement !== "image" && _isError)) ) {
// single element or single element in a named set or first element in a set (when lightbox is open, data.side = "") or last element in a set WHEN panorama is DISABLED, and when element type is ‘image’ or the Error Screen is shown
$contentContainer.css( "cursor", "default" );
Please sign in to comment.
Something went wrong with that request. Please try again.