Skip to content

Commit

Permalink
ZoneMinder#775 allow swipe for jpegs too
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Feb 2, 2019
1 parent 35538f6 commit 2be52f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions www/js/MontageHistoryCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,19 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc
//NVR.isBackground());
return NVR.isBackground();
};

$scope.skipImage = function (m, dirn) {

NVR.debug ("skipping image in direction:"+dirn);
var cmd = (dirn == -1)?12:13;
sendCmd(m.Monitor.Id, cmd);
//var CMD_PREV = 12;
//var CMD_NEXT = 13;




}
$scope.toggleControls = function () {
$scope.showControls = !$scope.showControls;
};
Expand Down
2 changes: 1 addition & 1 deletion www/templates/montage-history.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

<img class="{{monitor.Monitor.selectStyle}}" image-spinner-src="{{constructStream(monitor)}}"
image-spinner-loader="lines" on-tap="!isDragabillyOn?togglePause(monitor.Monitor.Id):toggleSelectItem($index)"
on-swipe-left="toggleControls()" on-swipe-right="toggleControls()" img-spinner-w="{{monitor.Monitor.Width}}"
on-swipe-left="skipImage(monitor,1)" on-swipe-right="skipImage(monitor,-1)" img-spinner-w="{{monitor.Monitor.Width}}"
img-spinner-h="{{monitor.Monitor.Height}}" />


Expand Down

0 comments on commit 2be52f3

Please sign in to comment.