setTimeout($.proxy(function() {
if (this._isMobile && !this._container.hasClass('maximized')) {
this._toggleView();
-
- this._container[0].addEventListener(WCF_CLICK_EVENT, (function (event) {
- if (!event.isDefaultPrevented && this._isMobile) this._toggleView();
- }).bind(this));
}
}, this), 500);
}
_enableMobileView: function() {
this._container.addClass('wcfImageViewerMobile');
- // the swipe-support conflicts with the ability to zoom in-and-out on images
- /*
var self = this;
this._ui.imageContainer.swipe({
swipeLeft: function(event) {
}
}
});
- */
this._isMobile = true;
},
*/
_disableMobileView: function() {
this._container.removeClass('wcfImageViewerMobile');
- //this._ui.imageContainer.swipe('destroy');
+ this._ui.imageContainer.swipe('destroy');
this._isMobile = false;
},