Merge pull request #19954 from woocommerce/update/19688

Disable zoom on touch devices
This commit is contained in:
Claudiu Lodromanean 2018-05-03 08:22:43 -07:00 committed by GitHub
commit 87211d9f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -105,6 +105,11 @@ jQuery( function( $ ) {
this.flexslider_enabled = false;
}
// ...and if we're on a touch device.
if ( 'ontouchstart' in document.documentElement ) {
this.zoom_enabled = false;
}
// Bind functions to this.
this.initFlexslider = this.initFlexslider.bind( this );
this.initZoom = this.initZoom.bind( this );

File diff suppressed because one or more lines are too long