Support desktop touchscreens for timelines (#11241)

* support desktop touchscreens

* remove placeholder select

* add max height to settings cameras dropdown
This commit is contained in:
Josh Hawkins
2024-05-04 22:00:33 -05:00
committed by GitHub
parent ad87f5786e
commit ca8ef70096
5 changed files with 7 additions and 34 deletions

View File

@@ -98,7 +98,7 @@ export default function LiveCameraView({ camera }: LiveCameraViewProps) {
let clientX;
let clientY;
if (isMobile && e.nativeEvent instanceof TouchEvent) {
if (e.nativeEvent instanceof TouchEvent) {
clientX = e.nativeEvent.touches[0].clientX;
clientY = e.nativeEvent.touches[0].clientY;
} else if (e.nativeEvent instanceof MouseEvent) {