Barba.js + mousewheel + TweenMax. I can not understand why the page scroll does not work












0















545/5000
I'm at a point where I can not think anymore. I need a hand !!!
I use mousewheel together with tweenmax for the scroll. In the home page the scroll is horizontal while in the other pages the scroll is vertical.
It works all right, but obviously in the mobile and especially in the huawei mobile phone does not work the scroll.
I wanted to introduce barba.js for page transference. But only horizontal scroll works.
Sorry for my bad English



Obviously I know that cell phones do not have a wheel. Should not you automatically take the gesture?






/*
Srolling Top index detail work
*/
$(function(){

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event){

event.preventDefault();

var delta = event.originalEvent.wheelDelta/120 || -event.originalEvent.detail/3;
var scrollTop = $window.scrollTop();
var finalScroll = scrollTop - parseInt(delta*scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo : { y: finalScroll, autoKill:true },
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});

});

});





For barba.js I used the transition with opacity






var FadeTransition = Barba.BaseTransition.extend({
start: function() {
/**
* This function is automatically called as soon the Transition starts
* this.newContainerLoading is a Promise for the loading of the new container
* (Barba.js also comes with an handy Promise polyfill!)
*/

// As soon the loading is finished and the old page is faded out, let's fade the new page
Promise
.all([this.newContainerLoading, this.fadeOut()])
.then(this.fadeIn.bind(this));
},

fadeOut: function() {
/**
* this.oldContainer is the HTMLElement of the old Container
*/

return $(this.oldContainer).animate({ opacity: 0 }).promise();
},

fadeIn: function() {
/**
* this.newContainer is the HTMLElement of the new Container
* At this stage newContainer is on the DOM (inside our #barba-container and with visibility: hidden)
* Please note, newContainer is available just after newContainerLoading is resolved!
*/
$(window).scrollTop(0); // scroll to top here

var _this = this;
var $el = $(this.newContainer);

$(this.oldContainer).hide();

$el.css({
visibility : 'visible',
opacity : 0
});

$el.animate({ opacity: 1 }, 400, function() {
/**
* Do not forget to call .done() as soon your transition is finished!
* .done() will automatically remove from the DOM the old Container
*/

_this.done();
});
}
});

/**
* Next step, you have to tell Barba to use the new Transition
*/

Barba.Pjax.getTransition = function() {





Only home page i have this code






function myFunction(x) {
if (x.matches) { // If media query matches
$(document.body).on('touchmove', onScroll); // for mobile
$(window).on('scroll', onScroll);

// callback
function onScroll() {
if ($(window).scrollTop() + window.innerHeight >= document.body.scrollHeight) {
track_page++;
load_contents(track_page);
}
}

} else {
$(function() {

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event) {

event.preventDefault();

var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
var scrollLeft = $window.scrollLeft();
var finalScroll = scrollLeft - parseInt(delta * scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo: {
x: finalScroll,
autoKill: true
},
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});
});
});
}
}

var x = window.matchMedia("(max-width: 700px)")
myFunction(x) // Call listener function at run time
x.addListener(myFunction) // Attach listener function on state changes





Thank you all for your cooperation










share|improve this question























  • I am working on scroll with Tween these days myself, may be I can help, but I couldn't understand your problem properly. What exactly do you want and what exactly is not working for you?

    – saibbyweb
    Nov 24 '18 at 17:15











  • Thank you. I try to explain myself better. My problem is: since I put barba.js does not work the scroll and huawai does not work in the cell scroll with the gesture.

    – Alessio Frugoni
    Nov 24 '18 at 19:13
















0















545/5000
I'm at a point where I can not think anymore. I need a hand !!!
I use mousewheel together with tweenmax for the scroll. In the home page the scroll is horizontal while in the other pages the scroll is vertical.
It works all right, but obviously in the mobile and especially in the huawei mobile phone does not work the scroll.
I wanted to introduce barba.js for page transference. But only horizontal scroll works.
Sorry for my bad English



Obviously I know that cell phones do not have a wheel. Should not you automatically take the gesture?






/*
Srolling Top index detail work
*/
$(function(){

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event){

event.preventDefault();

var delta = event.originalEvent.wheelDelta/120 || -event.originalEvent.detail/3;
var scrollTop = $window.scrollTop();
var finalScroll = scrollTop - parseInt(delta*scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo : { y: finalScroll, autoKill:true },
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});

});

});





For barba.js I used the transition with opacity






var FadeTransition = Barba.BaseTransition.extend({
start: function() {
/**
* This function is automatically called as soon the Transition starts
* this.newContainerLoading is a Promise for the loading of the new container
* (Barba.js also comes with an handy Promise polyfill!)
*/

// As soon the loading is finished and the old page is faded out, let's fade the new page
Promise
.all([this.newContainerLoading, this.fadeOut()])
.then(this.fadeIn.bind(this));
},

fadeOut: function() {
/**
* this.oldContainer is the HTMLElement of the old Container
*/

return $(this.oldContainer).animate({ opacity: 0 }).promise();
},

fadeIn: function() {
/**
* this.newContainer is the HTMLElement of the new Container
* At this stage newContainer is on the DOM (inside our #barba-container and with visibility: hidden)
* Please note, newContainer is available just after newContainerLoading is resolved!
*/
$(window).scrollTop(0); // scroll to top here

var _this = this;
var $el = $(this.newContainer);

$(this.oldContainer).hide();

$el.css({
visibility : 'visible',
opacity : 0
});

$el.animate({ opacity: 1 }, 400, function() {
/**
* Do not forget to call .done() as soon your transition is finished!
* .done() will automatically remove from the DOM the old Container
*/

_this.done();
});
}
});

/**
* Next step, you have to tell Barba to use the new Transition
*/

Barba.Pjax.getTransition = function() {





Only home page i have this code






function myFunction(x) {
if (x.matches) { // If media query matches
$(document.body).on('touchmove', onScroll); // for mobile
$(window).on('scroll', onScroll);

// callback
function onScroll() {
if ($(window).scrollTop() + window.innerHeight >= document.body.scrollHeight) {
track_page++;
load_contents(track_page);
}
}

} else {
$(function() {

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event) {

event.preventDefault();

var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
var scrollLeft = $window.scrollLeft();
var finalScroll = scrollLeft - parseInt(delta * scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo: {
x: finalScroll,
autoKill: true
},
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});
});
});
}
}

var x = window.matchMedia("(max-width: 700px)")
myFunction(x) // Call listener function at run time
x.addListener(myFunction) // Attach listener function on state changes





Thank you all for your cooperation










share|improve this question























  • I am working on scroll with Tween these days myself, may be I can help, but I couldn't understand your problem properly. What exactly do you want and what exactly is not working for you?

    – saibbyweb
    Nov 24 '18 at 17:15











  • Thank you. I try to explain myself better. My problem is: since I put barba.js does not work the scroll and huawai does not work in the cell scroll with the gesture.

    – Alessio Frugoni
    Nov 24 '18 at 19:13














0












0








0








545/5000
I'm at a point where I can not think anymore. I need a hand !!!
I use mousewheel together with tweenmax for the scroll. In the home page the scroll is horizontal while in the other pages the scroll is vertical.
It works all right, but obviously in the mobile and especially in the huawei mobile phone does not work the scroll.
I wanted to introduce barba.js for page transference. But only horizontal scroll works.
Sorry for my bad English



Obviously I know that cell phones do not have a wheel. Should not you automatically take the gesture?






/*
Srolling Top index detail work
*/
$(function(){

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event){

event.preventDefault();

var delta = event.originalEvent.wheelDelta/120 || -event.originalEvent.detail/3;
var scrollTop = $window.scrollTop();
var finalScroll = scrollTop - parseInt(delta*scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo : { y: finalScroll, autoKill:true },
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});

});

});





For barba.js I used the transition with opacity






var FadeTransition = Barba.BaseTransition.extend({
start: function() {
/**
* This function is automatically called as soon the Transition starts
* this.newContainerLoading is a Promise for the loading of the new container
* (Barba.js also comes with an handy Promise polyfill!)
*/

// As soon the loading is finished and the old page is faded out, let's fade the new page
Promise
.all([this.newContainerLoading, this.fadeOut()])
.then(this.fadeIn.bind(this));
},

fadeOut: function() {
/**
* this.oldContainer is the HTMLElement of the old Container
*/

return $(this.oldContainer).animate({ opacity: 0 }).promise();
},

fadeIn: function() {
/**
* this.newContainer is the HTMLElement of the new Container
* At this stage newContainer is on the DOM (inside our #barba-container and with visibility: hidden)
* Please note, newContainer is available just after newContainerLoading is resolved!
*/
$(window).scrollTop(0); // scroll to top here

var _this = this;
var $el = $(this.newContainer);

$(this.oldContainer).hide();

$el.css({
visibility : 'visible',
opacity : 0
});

$el.animate({ opacity: 1 }, 400, function() {
/**
* Do not forget to call .done() as soon your transition is finished!
* .done() will automatically remove from the DOM the old Container
*/

_this.done();
});
}
});

/**
* Next step, you have to tell Barba to use the new Transition
*/

Barba.Pjax.getTransition = function() {





Only home page i have this code






function myFunction(x) {
if (x.matches) { // If media query matches
$(document.body).on('touchmove', onScroll); // for mobile
$(window).on('scroll', onScroll);

// callback
function onScroll() {
if ($(window).scrollTop() + window.innerHeight >= document.body.scrollHeight) {
track_page++;
load_contents(track_page);
}
}

} else {
$(function() {

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event) {

event.preventDefault();

var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
var scrollLeft = $window.scrollLeft();
var finalScroll = scrollLeft - parseInt(delta * scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo: {
x: finalScroll,
autoKill: true
},
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});
});
});
}
}

var x = window.matchMedia("(max-width: 700px)")
myFunction(x) // Call listener function at run time
x.addListener(myFunction) // Attach listener function on state changes





Thank you all for your cooperation










share|improve this question














545/5000
I'm at a point where I can not think anymore. I need a hand !!!
I use mousewheel together with tweenmax for the scroll. In the home page the scroll is horizontal while in the other pages the scroll is vertical.
It works all right, but obviously in the mobile and especially in the huawei mobile phone does not work the scroll.
I wanted to introduce barba.js for page transference. But only horizontal scroll works.
Sorry for my bad English



Obviously I know that cell phones do not have a wheel. Should not you automatically take the gesture?






/*
Srolling Top index detail work
*/
$(function(){

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event){

event.preventDefault();

var delta = event.originalEvent.wheelDelta/120 || -event.originalEvent.detail/3;
var scrollTop = $window.scrollTop();
var finalScroll = scrollTop - parseInt(delta*scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo : { y: finalScroll, autoKill:true },
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});

});

});





For barba.js I used the transition with opacity






var FadeTransition = Barba.BaseTransition.extend({
start: function() {
/**
* This function is automatically called as soon the Transition starts
* this.newContainerLoading is a Promise for the loading of the new container
* (Barba.js also comes with an handy Promise polyfill!)
*/

// As soon the loading is finished and the old page is faded out, let's fade the new page
Promise
.all([this.newContainerLoading, this.fadeOut()])
.then(this.fadeIn.bind(this));
},

fadeOut: function() {
/**
* this.oldContainer is the HTMLElement of the old Container
*/

return $(this.oldContainer).animate({ opacity: 0 }).promise();
},

fadeIn: function() {
/**
* this.newContainer is the HTMLElement of the new Container
* At this stage newContainer is on the DOM (inside our #barba-container and with visibility: hidden)
* Please note, newContainer is available just after newContainerLoading is resolved!
*/
$(window).scrollTop(0); // scroll to top here

var _this = this;
var $el = $(this.newContainer);

$(this.oldContainer).hide();

$el.css({
visibility : 'visible',
opacity : 0
});

$el.animate({ opacity: 1 }, 400, function() {
/**
* Do not forget to call .done() as soon your transition is finished!
* .done() will automatically remove from the DOM the old Container
*/

_this.done();
});
}
});

/**
* Next step, you have to tell Barba to use the new Transition
*/

Barba.Pjax.getTransition = function() {





Only home page i have this code






function myFunction(x) {
if (x.matches) { // If media query matches
$(document.body).on('touchmove', onScroll); // for mobile
$(window).on('scroll', onScroll);

// callback
function onScroll() {
if ($(window).scrollTop() + window.innerHeight >= document.body.scrollHeight) {
track_page++;
load_contents(track_page);
}
}

} else {
$(function() {

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event) {

event.preventDefault();

var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
var scrollLeft = $window.scrollLeft();
var finalScroll = scrollLeft - parseInt(delta * scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo: {
x: finalScroll,
autoKill: true
},
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});
});
});
}
}

var x = window.matchMedia("(max-width: 700px)")
myFunction(x) // Call listener function at run time
x.addListener(myFunction) // Attach listener function on state changes





Thank you all for your cooperation






/*
Srolling Top index detail work
*/
$(function(){

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event){

event.preventDefault();

var delta = event.originalEvent.wheelDelta/120 || -event.originalEvent.detail/3;
var scrollTop = $window.scrollTop();
var finalScroll = scrollTop - parseInt(delta*scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo : { y: finalScroll, autoKill:true },
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});

});

});





/*
Srolling Top index detail work
*/
$(function(){

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event){

event.preventDefault();

var delta = event.originalEvent.wheelDelta/120 || -event.originalEvent.detail/3;
var scrollTop = $window.scrollTop();
var finalScroll = scrollTop - parseInt(delta*scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo : { y: finalScroll, autoKill:true },
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});

});

});





var FadeTransition = Barba.BaseTransition.extend({
start: function() {
/**
* This function is automatically called as soon the Transition starts
* this.newContainerLoading is a Promise for the loading of the new container
* (Barba.js also comes with an handy Promise polyfill!)
*/

// As soon the loading is finished and the old page is faded out, let's fade the new page
Promise
.all([this.newContainerLoading, this.fadeOut()])
.then(this.fadeIn.bind(this));
},

fadeOut: function() {
/**
* this.oldContainer is the HTMLElement of the old Container
*/

return $(this.oldContainer).animate({ opacity: 0 }).promise();
},

fadeIn: function() {
/**
* this.newContainer is the HTMLElement of the new Container
* At this stage newContainer is on the DOM (inside our #barba-container and with visibility: hidden)
* Please note, newContainer is available just after newContainerLoading is resolved!
*/
$(window).scrollTop(0); // scroll to top here

var _this = this;
var $el = $(this.newContainer);

$(this.oldContainer).hide();

$el.css({
visibility : 'visible',
opacity : 0
});

$el.animate({ opacity: 1 }, 400, function() {
/**
* Do not forget to call .done() as soon your transition is finished!
* .done() will automatically remove from the DOM the old Container
*/

_this.done();
});
}
});

/**
* Next step, you have to tell Barba to use the new Transition
*/

Barba.Pjax.getTransition = function() {





var FadeTransition = Barba.BaseTransition.extend({
start: function() {
/**
* This function is automatically called as soon the Transition starts
* this.newContainerLoading is a Promise for the loading of the new container
* (Barba.js also comes with an handy Promise polyfill!)
*/

// As soon the loading is finished and the old page is faded out, let's fade the new page
Promise
.all([this.newContainerLoading, this.fadeOut()])
.then(this.fadeIn.bind(this));
},

fadeOut: function() {
/**
* this.oldContainer is the HTMLElement of the old Container
*/

return $(this.oldContainer).animate({ opacity: 0 }).promise();
},

fadeIn: function() {
/**
* this.newContainer is the HTMLElement of the new Container
* At this stage newContainer is on the DOM (inside our #barba-container and with visibility: hidden)
* Please note, newContainer is available just after newContainerLoading is resolved!
*/
$(window).scrollTop(0); // scroll to top here

var _this = this;
var $el = $(this.newContainer);

$(this.oldContainer).hide();

$el.css({
visibility : 'visible',
opacity : 0
});

$el.animate({ opacity: 1 }, 400, function() {
/**
* Do not forget to call .done() as soon your transition is finished!
* .done() will automatically remove from the DOM the old Container
*/

_this.done();
});
}
});

/**
* Next step, you have to tell Barba to use the new Transition
*/

Barba.Pjax.getTransition = function() {





function myFunction(x) {
if (x.matches) { // If media query matches
$(document.body).on('touchmove', onScroll); // for mobile
$(window).on('scroll', onScroll);

// callback
function onScroll() {
if ($(window).scrollTop() + window.innerHeight >= document.body.scrollHeight) {
track_page++;
load_contents(track_page);
}
}

} else {
$(function() {

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event) {

event.preventDefault();

var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
var scrollLeft = $window.scrollLeft();
var finalScroll = scrollLeft - parseInt(delta * scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo: {
x: finalScroll,
autoKill: true
},
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});
});
});
}
}

var x = window.matchMedia("(max-width: 700px)")
myFunction(x) // Call listener function at run time
x.addListener(myFunction) // Attach listener function on state changes





function myFunction(x) {
if (x.matches) { // If media query matches
$(document.body).on('touchmove', onScroll); // for mobile
$(window).on('scroll', onScroll);

// callback
function onScroll() {
if ($(window).scrollTop() + window.innerHeight >= document.body.scrollHeight) {
track_page++;
load_contents(track_page);
}
}

} else {
$(function() {

var $window = $(window); //Window object

var scrollTime = 1.2; //Scroll time
var scrollDistance = 300; //Distance. Use smaller value for shorter scroll and greater value for longer scroll 170

$window.on("mousewheel DOMMouseScroll", function(event) {

event.preventDefault();

var delta = event.originalEvent.wheelDelta / 120 || -event.originalEvent.detail / 3;
var scrollLeft = $window.scrollLeft();
var finalScroll = scrollLeft - parseInt(delta * scrollDistance);

TweenMax.to($window, scrollTime, {
scrollTo: {
x: finalScroll,
autoKill: true
},
ease: Power1.easeOut, //For more easing functions see https://api.greensock.com/js/com/greensock/easing/package-detail.html
autoKill: true,
overwrite: 5
});
});
});
}
}

var x = window.matchMedia("(max-width: 700px)")
myFunction(x) // Call listener function at run time
x.addListener(myFunction) // Attach listener function on state changes






javascript mousewheel gsap tweenmax barbajs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 24 '18 at 17:08









Alessio FrugoniAlessio Frugoni

1314




1314













  • I am working on scroll with Tween these days myself, may be I can help, but I couldn't understand your problem properly. What exactly do you want and what exactly is not working for you?

    – saibbyweb
    Nov 24 '18 at 17:15











  • Thank you. I try to explain myself better. My problem is: since I put barba.js does not work the scroll and huawai does not work in the cell scroll with the gesture.

    – Alessio Frugoni
    Nov 24 '18 at 19:13



















  • I am working on scroll with Tween these days myself, may be I can help, but I couldn't understand your problem properly. What exactly do you want and what exactly is not working for you?

    – saibbyweb
    Nov 24 '18 at 17:15











  • Thank you. I try to explain myself better. My problem is: since I put barba.js does not work the scroll and huawai does not work in the cell scroll with the gesture.

    – Alessio Frugoni
    Nov 24 '18 at 19:13

















I am working on scroll with Tween these days myself, may be I can help, but I couldn't understand your problem properly. What exactly do you want and what exactly is not working for you?

– saibbyweb
Nov 24 '18 at 17:15





I am working on scroll with Tween these days myself, may be I can help, but I couldn't understand your problem properly. What exactly do you want and what exactly is not working for you?

– saibbyweb
Nov 24 '18 at 17:15













Thank you. I try to explain myself better. My problem is: since I put barba.js does not work the scroll and huawai does not work in the cell scroll with the gesture.

– Alessio Frugoni
Nov 24 '18 at 19:13





Thank you. I try to explain myself better. My problem is: since I put barba.js does not work the scroll and huawai does not work in the cell scroll with the gesture.

– Alessio Frugoni
Nov 24 '18 at 19:13












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53460501%2fbarba-js-mousewheel-tweenmax-i-can-not-understand-why-the-page-scroll-does%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53460501%2fbarba-js-mousewheel-tweenmax-i-can-not-understand-why-the-page-scroll-does%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen