File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
core/src/components/modal/gestures Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -239,9 +239,11 @@ export const createSheetGesture = (
239239 * this allows us to avoid querying the DOM for the target in onMove,
240240 * which would impact performance significantly.
241241 */
242- const targetEl = findClosestIonContent ( detail . event . target ! as HTMLElement ) ;
243- cachedScrollEl =
244- targetEl && isIonContent ( targetEl ) ? getElementRoot ( targetEl ) . querySelector ( '.inner-scroll' ) : targetEl ;
242+ if ( ! expandToScroll ) {
243+ const targetEl = findClosestIonContent ( detail . event . target ! as HTMLElement ) ;
244+ cachedScrollEl =
245+ targetEl && isIonContent ( targetEl ) ? getElementRoot ( targetEl ) . querySelector ( '.inner-scroll' ) : targetEl ;
246+ }
245247
246248 /**
247249 * If expandToScroll is disabled, we need to swap
You can’t perform that action at this time.
0 commit comments