MCPcopy Create free account
hub / github.com/dailydotdev/apps / onTouchStart

Function onTouchStart

packages/shared/src/components/shell/ReadingDrawer.tsx:681–700  ·  view source on GitHub ↗
(event: TouchEvent)

Source from the content-addressed store, hash-verified

679 return current.full - y > threshold ? current.card : current.full;
680 };
681 const onTouchStart = (event: TouchEvent) => {
682 dragging = true;
683 refreshMoving();
684 landGlide();
685 if (opening && !closing) {
686 land();
687 update();
688 }
689 touchX = event.touches[0]?.clientX ?? 0;
690 touchY = event.touches[0]?.clientY ?? 0;
691 if (hasOpenLayer()) {
692 take = null;
693 } else if (layout === 'card') {
694 take = 'lift';
695 } else if (window.scrollY <= 2) {
696 take = 'pull';
697 } else {
698 take = null;
699 }
700 };
701 const onTouchMove = (event: TouchEvent) => {
702 const touch = event.touches[0];
703 if (!touch) {

Callers

nothing calls this directly

Calls 5

hasOpenLayerFunction · 0.90
refreshMovingFunction · 0.85
landGlideFunction · 0.85
landFunction · 0.70
updateFunction · 0.70

Tested by

no test coverage detected