Skip to content

Commit

Permalink
add touch events back to svg #420
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jan 1, 2017
1 parent 090afd0 commit 4d96b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/templates/monitors-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<!-- zone overlays if enabled -->
<div ng-show="showZones">
<svg width="100vw" height="100vh" class="zonelayer" ng-attr-view_box="0 0 {{cw}} {{ch}}" ng-attr-preserve_aspect_ratio="{{aspectFit}}">
<svg width="100vw" height="100vh" class="zonelayer" ng-attr-view_box="0 0 {{cw}} {{ch}}" ng-attr-preserve_aspect_ratio="{{aspectFit}}" on-swipe-left="onSwipe(monitorId,1)" on-swipe-right="onSwipe(monitorId,-1)" on-double-tap="closeModal();">

<polygon ng-repeat="item in zoneArray track by $index" ng-class="{'object-fit_cover {{item.type}}':imageFit==false, 'object-fit_contain {{item.type}}':imageFit==true}" ng-attr-points="{{item.coords}}" /> </polygon>

Expand Down

0 comments on commit 4d96b07

Please sign in to comment.