improve controls on touch devices

This commit is contained in:
Hakim El Hattab
2017-05-18 14:11:48 +02:00
parent fb1b8a2790
commit 6dde00fb2e
3 changed files with 40 additions and 17 deletions

View File

@ -523,6 +523,13 @@
// Prevent transitions while we're loading
dom.slides.classList.add( 'no-transition' );
if( isMobileDevice ) {
dom.wrapper.classList.add( 'no-hover' );
}
else {
dom.wrapper.classList.remove( 'no-hover' );
}
// Background element
dom.background = createSingletonNode( dom.wrapper, 'div', 'backgrounds', null );