You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.
I'm trying to have an onclick event that takes a user to a position on the page with the skrollr library, but whenever I try to do so, I get the following error:
Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080 skrollr.min.js:2
As it is I am using the following javascript which I don't believe to be inhibiting the click behavior.
function scrollAbout() {
document.getElementById("nav").style.height = "0%";
window.scroll({
top: 2180,
behavior: 'smooth'
});
}
function openNav() {
event.preventDefault();
document.getElementById("nav").style.height = "100%";
}
function closeNav() {
document.getElementById("nav").style.height = "0%";
}
function openFollow() {
document.getElementById("nav").style.height = "0%";
document.getElementById("follow").style.width = "100%";
}
function closeFollow() {
document.getElementById("follow").style.width = "0%";
}
function closeTours() {
document.getElementById("nav").style.height = "0%";
$('.open-popup-link').magnificPopup({
items: {
src: '#tours',
type: 'inline',
midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
}
});
}
$(document).ready(function() {
var s = skrollr.init();
});
$('.open-popup-link').magnificPopup({
type:'inline',
midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
});
$('#tour').click(
function (e) {
$('html, body').animate({scrollTop: '2100px'}, 800);
}
);
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, true);
</script>
The text was updated successfully, but these errors were encountered:
As for the warning from Chrome: sorry for the trouble, this is a breaking change in Chrome 56 to improve scroll performance. There's probably a missing touch-actionCSS rule, which is necessary to support touch on IE/Edge anyway.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to have an onclick event that takes a user to a position on the page with the skrollr library, but whenever I try to do so, I get the following error:
Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080 skrollr.min.js:2
As it is I am using the following javascript which I don't believe to be inhibiting the click behavior.
The text was updated successfully, but these errors were encountered: