mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Make it work with mobile too
This commit is contained in:
parent
b3a13a1454
commit
8fb0772fa9
@ -42,6 +42,8 @@ export default function TimelineEventOverlay({ event, eventOverlay, cameraConfig
|
|||||||
className="absolute border-4 border-red-600"
|
className="absolute border-4 border-red-600"
|
||||||
onMouseEnter={() => setIsHovering(true)}
|
onMouseEnter={() => setIsHovering(true)}
|
||||||
onMouseLeave={() => setIsHovering(false)}
|
onMouseLeave={() => setIsHovering(false)}
|
||||||
|
onTouchStart={() => setIsHovering(true)}
|
||||||
|
onTouchEnd={() => setIsHovering(false)}
|
||||||
style={{
|
style={{
|
||||||
left: `${boxLeftEdge}%`,
|
left: `${boxLeftEdge}%`,
|
||||||
top: `${boxTopEdge}%`,
|
top: `${boxTopEdge}%`,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user