diff --git a/src/components/image/image.js b/src/components/image/image.js index 3b9e396..e6d0747 100755 --- a/src/components/image/image.js +++ b/src/components/image/image.js @@ -25,6 +25,7 @@ const ImageService = ($mdDialog, $timeout) => { vm.keyDown = keyDown; vm.nextImage = nextImage; vm.prevImage = prevImage; + vm.activate_scroll = params.activate_scroll init(); $timeout(() => { vm.loaded = true; }, 150); diff --git a/src/components/image/image.scss b/src/components/image/image.scss index 8b3d6c2..a6a3098 100755 --- a/src/components/image/image.scss +++ b/src/components/image/image.scss @@ -27,6 +27,30 @@ opacity: .75; } + .dialog__next_img { + position: absolute; + width: 70px; + height: 70px; + top: 50%; + right: 0; + margin: 0; + margin-top: -35px; + padding: 15px; + opacity: .75; + } + + .dialog__prev_img { + position: absolute; + width: 70px; + height: 70px; + top: 50%; + left: 0; + margin: 0; + margin-top: -35px; + padding: 15px; + opacity: .75; + } + .dialog__image-container { position: relative; background: black; diff --git a/src/components/image/image.tpl.html b/src/components/image/image.tpl.html index 20d7de0..e79135d 100755 --- a/src/components/image/image.tpl.html +++ b/src/components/image/image.tpl.html @@ -6,9 +6,15 @@ layout="row" layout-align="center center" ng-swipe-right="nextImage()" ng-swipe-left="prevImage()"> - - close - + + close + + + skip_next + + + skip_previous +
Saving layout="row" layout-align="center center" ng-repeat="image in $ctrl.image" - ng-click="$ctrl.openImage(image, $event)" + ng-click="$ctrl.openImage(image, $event,false)" > @@ -359,7 +359,7 @@

diff --git a/src/components/main/monument/monument.js b/src/components/main/monument/monument.js index d64f7bb..7f453de 100755 --- a/src/components/main/monument/monument.js +++ b/src/components/main/monument/monument.js @@ -497,11 +497,12 @@ ${getCategory()} }); } - function openImage(image, event) { + function openImage(image, event,activate_scroll) { imageService.openImage({ image, event, list: vm.images, + activate_scroll:activate_scroll, }); }