Closed dimpiax closed 6 years ago
Thanks for this. I cant reproduce the arrow problem as I dont have any safari access right now, but i'll have a look first chance i get.
Sliding is not supported right now (because of browser compatibility problems), it's just tapping left or right of the screen.
I cant reproduce the arrow problem as I dont have any safari access right now
That's correct (mac OS Sierra/Safari 10.*). I'll dig into this locally
Debugged with breakpoints in Safari on Sierra:
if (this.keyboardNavigation &&
(this.currentSlide.keyboardNavigation || evt.ctrlKey)) {
What if switch to CMD
?
Try this:
$(window).keydown(function(e) {
const code = e.keyCode
if (code === 37 || code === 39) {
if (e.metaKey) {
console.log(`slide to ${code === 37 ? 'left' : 'right'}`);
}
}
})
Can contribute after lunch ;)
No need for a new dependency for that!
addEventListener('keydown', (e) => { \* ... *\ });
works just as fine.
Please use command + right/left in Mac as ctrl + right/left is move screen by default.
Arrows' flow and "Ctrl + right" / left doesn't work. Sliding gesture skippes animation on arrival page.