refactor(web): centralize touch mouse adapters
This commit is contained in:
@@ -127,6 +127,10 @@ export const rules = [
|
||||
pattern: /\bexport function getTouchPoint\b/,
|
||||
message: "timeline touch helpers must keep touch coordinate fallback centralized",
|
||||
},
|
||||
{
|
||||
pattern: /\bexport function createTouchMouseDownEvent\b/,
|
||||
message: "timeline touch helpers must keep touch-to-mouse adapter wiring centralized",
|
||||
},
|
||||
{
|
||||
pattern: /\bexport function resolveTouchDragDecision\b/,
|
||||
message: "timeline touch helpers must keep scroll-vs-drag disambiguation centralized",
|
||||
@@ -330,6 +334,10 @@ export const rules = [
|
||||
pattern: /\bfunction toClientX\b/,
|
||||
message: "timeline drag must not re-inline touch coordinate fallback helpers",
|
||||
},
|
||||
{
|
||||
pattern: /as unknown as React\.MouseEvent/,
|
||||
message: "timeline drag must not re-inline synthetic touch mouse-down adapters",
|
||||
},
|
||||
{
|
||||
pattern: /\bfunction (?:hasAllocationDateChange|shouldTreatAllocationDragAsClick|requiresAllocationFragmentExtraction|buildAllocationMovedSnapshot|reconcileOptimisticEntries)\b/,
|
||||
message: "timeline drag must not re-inline extracted optimistic or allocation finalize helper implementations",
|
||||
|
||||
Reference in New Issue
Block a user