Merge pull request #19954 from woocommerce/update/19688
Disable zoom on touch devices
This commit is contained in:
commit
87211d9f19
|
@ -105,6 +105,11 @@ jQuery( function( $ ) {
|
||||||
this.flexslider_enabled = false;
|
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.
|
// Bind functions to this.
|
||||||
this.initFlexslider = this.initFlexslider.bind( this );
|
this.initFlexslider = this.initFlexslider.bind( this );
|
||||||
this.initZoom = this.initZoom.bind( this );
|
this.initZoom = this.initZoom.bind( this );
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue