disabale zoom on mobile devices
This commit is contained in:
parent
fdd681a4eb
commit
dbff16b8b7
|
|
@ -58,7 +58,7 @@ class CategoryDataGrid extends DataGrid
|
|||
$this->addColumn([
|
||||
'index' => 'position',
|
||||
'label' => trans('admin::app.datagrid.position'),
|
||||
'type' => 'string',
|
||||
'type' => 'number',
|
||||
'searchable' => false,
|
||||
'sortable' => true,
|
||||
'filterable' => true
|
||||
|
|
|
|||
|
|
@ -108,7 +108,9 @@
|
|||
|
||||
this.currentOriginalImageUrl = image.original_image_url;
|
||||
|
||||
$('img#pro-img').data('zoom-image', image.original_image_url).ezPlus();
|
||||
if ($(window).width() > 580) {
|
||||
$('img#pro-img').data('zoom-image', image.original_image_url).ezPlus();
|
||||
}
|
||||
},
|
||||
|
||||
moveThumbs: function(direction) {
|
||||
|
|
@ -152,7 +154,9 @@
|
|||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('img#pro-img').data('zoom-image', $('img#pro-img').data('image')).ezPlus();
|
||||
if ($(window).width() > 580) {
|
||||
$('img#pro-img').data('zoom-image', $('img#pro-img').data('image')).ezPlus();
|
||||
}
|
||||
|
||||
$(document).mousemove(function(event) {
|
||||
if ($('.add-to-wishlist').length) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue