});
$(this.fluidbook).on('fluidbook.lib.ready', function () {
- setTimeout(function(){
+ setTimeout(function () {
$this.initArrowsVisibilityManagement();
- },1000)
+ }, 1000)
});
},
initArrowsVisibilityManagement: function () {
- var $this = this;
+ let $this = this;
this.getInterfaceSelector().addClass('interfacecomponent');
if (this.autoHideArrows()) {
- if (this.fluidbook.touch) {
+ if (this.fluidbook.touch && this.fluidbook.touch.hm) {
this.fluidbook.touch.hm.on('singletap', function (event) {
var target = $(event.target);
if (target.is('a') || target.closest('a').length > 0) {
} else {
return this.displayInterface();
}
- },
- displayInterface: function () {
+ }, displayInterface: function () {
this.interfaceVisible = true;
this.getInterfaceSelector().removeClass('interfacehidden');
this.resetTimeout();
- },
- resetTimeout: function () {
+ }, resetTimeout: function () {
this.clearTimeout();
if (!this.autoHideArrows()) {
return false;
this.visibleTimeout = setTimeout(function () {
$this.hideInterface();
}, this.visibleTime);
- },
- hideInterface: function () {
+ }, hideInterface: function () {
if (!this.autoHideArrows()) {
return;
}