improve controls on touch devices
This commit is contained in:
parent
fb1b8a2790
commit
6dde00fb2e
3 changed files with 40 additions and 17 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue