Closed jspraguedesigns closed 5 years ago
@jspraguedesigns Are you getting any console errors during the transition?
None
Sent from my iPhone
On Sep 19, 2018, at 11:03 AM, Cody Marcoux notifications@github.com wrote:
@jspraguedesigns Are you getting any console errors during the transition?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Has this been resolved?
Since implementing barba.js the user has to double click the arrows at the bottom to navigate if the user scrolled down. The first click scrolls to the top. The second click navigates to the next page. Not sure what the glitch is
View here: http://spraguedigitalcreative.com/silvergate-wordpress-theme-development/
`document.addEventListener("DOMContentLoaded", function() { var lastElementClicked; var PrevLink = document.querySelector('.prev-container'); var NextLink = document.querySelector('.next-container');
Barba.Pjax.init(); Barba.Prefetch.init();
Barba.Dispatcher.on('linkClicked', function(el) { lastElementClicked = el; });
var MovePage = Barba.BaseTransition.extend({ start: function() { this.originalThumb = lastElementClicked;
});
Barba.Pjax.getTransition = function() { return MovePage; }; }); `