Replace onPointerDown with onMouseDown in ProjectSchedulePane
This commit is contained in:
@@ -872,7 +872,7 @@ export function ProjectSequencerPane({
|
|||||||
left: `${(segment.startHour / HOURS_PER_DAY) * 100}%`,
|
left: `${(segment.startHour / HOURS_PER_DAY) * 100}%`,
|
||||||
width: `${((segment.endHour - segment.startHour) / HOURS_PER_DAY) * 100}%`
|
width: `${((segment.endHour - segment.startHour) / HOURS_PER_DAY) * 100}%`
|
||||||
}}
|
}}
|
||||||
onPointerDown={(event) =>
|
onMouseDown={(event) =>
|
||||||
beginRoutineDrag(event, routine, "move")
|
beginRoutineDrag(event, routine, "move")
|
||||||
}
|
}
|
||||||
onClick={() => onSelectRoutine(routine.id)}
|
onClick={() => onSelectRoutine(routine.id)}
|
||||||
@@ -880,7 +880,7 @@ export function ProjectSequencerPane({
|
|||||||
<span
|
<span
|
||||||
className="schedule-block__resize-handle schedule-block__resize-handle--start"
|
className="schedule-block__resize-handle schedule-block__resize-handle--start"
|
||||||
aria-label={`Resize start of ${routine.title}`}
|
aria-label={`Resize start of ${routine.title}`}
|
||||||
onPointerDown={(event) =>
|
onMouseDown={(event) =>
|
||||||
beginRoutineDrag(event, routine, "resize-start")
|
beginRoutineDrag(event, routine, "resize-start")
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@@ -890,7 +890,7 @@ export function ProjectSequencerPane({
|
|||||||
<span
|
<span
|
||||||
className="schedule-block__resize-handle schedule-block__resize-handle--end"
|
className="schedule-block__resize-handle schedule-block__resize-handle--end"
|
||||||
aria-label={`Resize end of ${routine.title}`}
|
aria-label={`Resize end of ${routine.title}`}
|
||||||
onPointerDown={(event) =>
|
onMouseDown={(event) =>
|
||||||
beginRoutineDrag(event, routine, "resize-end")
|
beginRoutineDrag(event, routine, "resize-end")
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user