improve controls on touch devices

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

No files matched your search

+7
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 );