e.stopPropagation();
})
- $(document).on('mousewheel', function (e) {
- $this.wheelZoom(e.deltaY);
- })
-
+ if (!this.fluidbook.mobilefirst.enabled) {
+ $(document).on('mousewheel', function (e) {
+ $this.wheelZoom(e.deltaY);
+ });
+ }
$(document).on('mousemove', 'body', function (e) {
$this.moveZoom(e);
this.view.find('.next, .last').css(nextPosition);
// Slider label
- var positionSliderLabel = function () {
- var sliderHelp = $this.view.find('.slider');
- var sliderCursor = $('#slidercursor .visible');
- sliderHelp.css({
- bottom: Math.round(hh - sliderCursor.offset().top),
- left: Math.round(sliderCursor.offset().left + (sliderCursor.width() / 2)),
- transformOrigin: 'left bottom'
- });
- };
- positionSliderLabel(); // Run immediately
- setTimeout(positionSliderLabel, 250); // delay slightly to make sure co-ordinates are correct
+ if ($("#slider").length > 0) {
+ var positionSliderLabel = function () {
+ var sliderHelp = $this.view.find('.slider');
+ var sliderCursor = $('#slidercursor .visible');
+ sliderHelp.css({
+ bottom: Math.round(hh - sliderCursor.offset().top),
+ left: Math.round(sliderCursor.offset().left + (sliderCursor.width() / 2)),
+ transformOrigin: 'left bottom'
+ });
+ };
+ positionSliderLabel(); // Run immediately
+ setTimeout(positionSliderLabel, 250); // delay slightly to make sure co-ordinates are correct
+ }
this.view.find('#icons').css({
top: menuHeightScaled,
this.nav = new FluidbookNav(this);
this.interface = new FluidbookInterface(this);
- this.slider = new FluidbookSlider(this);
+ if (!this.mobilefirst.enabled) {
+ this.slider = new FluidbookSlider(this);
+ }
this.help = new FluidbookHelp(this);
this.help.displayAtStartup();
},
getOrientation: function () {
try {
- if (this.fluidbook.pad && this.fluidbook.pad.enabled) {
+ if ((this.fluidbook.pad && this.fluidbook.pad.enabled) || this.fluidbook.mobilefirst.enabled) {
return 0;
} else if (this.fluidbook.datas.mobileNavigationType === 'landscape') {
return 90;