File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/components/image-preview Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 7676 speed: {
7777 type: Number ,
7878 default: 400
79+ },
80+ preventDefault: {
81+ type: Boolean ,
82+ default: true
7983 }
8084 },
8185 data () {
8892 right: true
8993 },
9094 useTransition: ! isAndroid,
91- probeType: 3
95+ probeType: 3 ,
96+ preventDefault: this .preventDefault
9297 },
9398 scrollOptions: {
9499 observeDOM: false ,
101106 bounce: false ,
102107 click: false ,
103108 dblclick: true ,
104- bounceTime: 300
109+ bounceTime: 300 ,
110+ preventDefault: this .preventDefault
105111 }
106112 }
107113 },
222228 })
223229 },
224230 checkBoundary (scroll , pos ) {
225- if (scroll .distX ) {
231+ if (scroll .distX && Math . abs ( scroll . distX ) > Math . abs ( scroll . distY ) ) {
226232 this ._scrolling = true
227233 const reached = scroll .distX > 0 ? pos .x >= scroll .minScrollX : pos .x <= scroll .maxScrollX
228234 if (reached) {
You can’t perform that action at this time.
0 commit comments