Skip to content

Commit e958e5e

Browse files
committed
refactor: comments
1 parent 2c9dfa1 commit e958e5e

File tree

1 file changed

+3
-3
lines changed
  • core/src/components/modal/gestures

1 file changed

+3
-3
lines changed

core/src/components/modal/gestures/sheet.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ export const createSheetGesture = (
264264

265265
const onMove = (detail: GestureDetail) => {
266266
/**
267-
* If `expandToScroll` is disabled, we should not allow the swipe gesture
268-
* to continue if the gesture is not pulling down within scrollable content.
267+
* If `expandToScroll` is disabled, and an upwards swipe gesture is done within
268+
* the scrollable content, we should not allow the swipe gesture to continue.
269269
*/
270270
if (!expandToScroll && detail.deltaY <= 0) {
271271
const contentEl = findClosestIonContent(detail.event.target! as HTMLElement)
@@ -330,7 +330,7 @@ export const createSheetGesture = (
330330
const onEnd = (detail: GestureDetail) => {
331331
/**
332332
* If expandToScroll is disabled, we should not allow the moveSheetToBreakpoint
333-
* function to be called if the user is trying to swipe upwards and the content
333+
* function to be called if the user is trying to swipe content upwards and the content
334334
* is not scrolled to the top.
335335
*/
336336
if (!expandToScroll && detail.deltaY <= 0 && findClosestIonContent(detail.event.target! as HTMLElement)) {

0 commit comments

Comments
 (0)