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

Added the ability to initialize with parameters (PanZoom) #4072

Merged
merged 9 commits into from
Jun 14, 2024

Conversation

IgorA100
Copy link
Contributor

@IgorA100 IgorA100 commented Jun 6, 2024

  • Change cursor style depending on disablePan & disableZoom

  • Added handling of error situations.

  • Added assignment of functions for listening to events "panzoomchange", "panzoomzoom"

  • During initialization, you can specify any parameters that will later be transferred directly to "Panzoom"

  • Added an experimental function for reducing the block containing the image (Shift+Alt+mouse wheel).
    To do this, you need to initialize another object. For example like this:
    "zmPanZoom.init({objString: '.imageFeed', disablePan: true, contain: 'inside', additional: true});"
    The key parameter for additional control (Alt key) is "additional: true"

  • Code optimization

  • Added initialization of the experimental PanZoom function for reducing a block containing an image (Shift+Alt+mouse wheel) on Watch page

 + Изменять стиль курсора в зависимости от disablePan & disableZoom
+ Добавлена обработка ошибочных ситуаций.
+ Добавлено назначение функций для прослушивания событий "panzoomchange", "panzoomzoom"
@IgorA100 IgorA100 marked this pull request as ready for review June 6, 2024 17:16
@IgorA100 IgorA100 marked this pull request as draft June 6, 2024 17:47
+ Now addEventListener without an anonymous function, which allows you to correctly removeEventListener for a specific PanZoom object
+ Disabling ".btn-zoom-in" and ".btn-zoom-out" only for the PanZoom object being disabled, not for all.
+ During initialization, you can specify any parameters that will later be transferred directly to "Panzoom"

+ Added an experimental function for reducing the block containing the image (Shift+Alt+mouse wheel).
To do this, you need to initialize another object. For example like this:
 "zmPanZoom.init({objString: '.imageFeed', disablePan: true, contain: 'inside', additional: true});"
 The key parameter for additional control (Alt key) is "additional: true"

+ Code optimization
…g a block containing an image (Shift+Alt+mouse wheel) (watch.js)
@IgorA100 IgorA100 marked this pull request as ready for review June 14, 2024 12:53
@connortechnology connortechnology merged commit 04c743d into ZoneMinder:master Jun 14, 2024
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants