MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / checkEdgeSide

Function checkEdgeSide

core/src/components/menu/menu.tsx:874–880  ·  view source on GitHub ↗
(win: Window, posX: number, isEndSide: boolean, maxEdgeStart: number)

Source from the content-addressed store, hash-verified

872};
873
874const checkEdgeSide = (win: Window, posX: number, isEndSide: boolean, maxEdgeStart: number): boolean => {
875 if (isEndSide) {
876 return posX >= win.innerWidth - maxEdgeStart;
877 } else {
878 return posX <= maxEdgeStart;
879 }
880};
881
882const SHOW_MENU = 'show-menu';
883const SHOW_BACKDROP = 'show-backdrop';

Callers 1

canStartMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected