Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Digital PTZ via mouse and touch #491

Merged
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4a3469e
Add Digital PTZ via mouse and touch
dbuezas May 21, 2023
2b41e18
Correct file name
dbuezas May 21, 2023
cfe175c
Fix double-tap-to-zoom when touch_pan is disabled
dbuezas May 21, 2023
0c16f3d
Made gestures independent of each other for simpler code, renamed opt…
dbuezas May 22, 2023
4b6e584
undo unintended linting to __init__.py
dbuezas May 22, 2023
ee2a412
rename files to avoid dots
dbuezas May 22, 2023
63d4817
Reduce didMove threshold
dbuezas May 23, 2023
95b5607
Default to no touch_tap_drag_zoom
dbuezas May 23, 2023
992341b
Fix NaN coordinates bug when reopening a video panel
dbuezas May 23, 2023
686f5c6
Update defaults in readme
dbuezas May 23, 2023
f626947
Optimize gestures, reenable tap-drag-zoom, transition on double click…
dbuezas May 24, 2023
da58ed5
register mouseup events on the window instead of container
dbuezas May 26, 2023
15147f4
Remove 3 unused instance variables and added an explanation of why th…
dbuezas Jun 3, 2023
1e15ec0
Merge all digital-ptz code into a single file
dbuezas Jun 18, 2023
4800e50
Enable touch drag pan by default now that it only acts if scale != 1
dbuezas Jun 18, 2023
644d611
Add option to disable completely and update readme
dbuezas Jun 18, 2023
c53e9d6
Undo unintended py formatting
dbuezas Jun 18, 2023
ed5450c
iOS12 compatibility
dbuezas Jul 6, 2023
e3b14dd
Move digitalPTZ init code to its own member function like all other f…
dbuezas Jul 9, 2023
9e62934
Merge branch 'AlexxIT:master' into Add-digital-ptz-mouse-and-touch-co…
dbuezas Jul 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reduce didMove threshold
  • Loading branch information
dbuezas committed Jun 18, 2023
commit 63d48179c105616685d89aec8ea92535a406c114
2 changes: 1 addition & 1 deletion custom_components/webrtc/www/digital-ptz-gestures.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function startDoubleTapZoom({ containerEl, transform, render }) {
const onTouchEnd = (endEvent) => {
const isQuickRelease = endEvent.timeStamp - lastTap < DBL_CLICK_MS;
const didMove =
50 <
30 <
Math.hypot(
endEvent.changedTouches[0].clientX - downEvent.touches[0].clientX,
endEvent.changedTouches[0].clientY - downEvent.touches[0].clientY
Expand Down