Tpt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/101482


Change subject: Remove dead code in zoom system
......................................................................

Remove dead code in zoom system

Change-Id: Ia2d36a8962348190b604dee71c798a79a06fd4e2
---
M modules/jquery/jquery.prpZoom.js
1 file changed, 0 insertions(+), 34 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/82/101482/1

diff --git a/modules/jquery/jquery.prpZoom.js b/modules/jquery/jquery.prpZoom.js
index 8ce2506..ca0c4ac 100644
--- a/modules/jquery/jquery.prpZoom.js
+++ b/modules/jquery/jquery.prpZoom.js
@@ -25,7 +25,6 @@
 
                options: {
                        zoomStep: 6,
-                       moveStep: 6,
                        animationDuration: 10
                },
 
@@ -35,11 +34,6 @@
                },
 
                zoomStep: {
-                       width: 0,
-                       height: 0
-               },
-
-               moveStep: {
                        width: 0,
                        height: 0
                },
@@ -69,10 +63,6 @@
                        this.zoomStep = {
                                width: this.options.zoomStep * 
this.default.width / 100,
                                height: this.options.zoomStep * 
this.default.height / 100
-                       };
-                       this.moveStep = {
-                               width: this.options.moveStep * 
this.default.width / 100,
-                               height: this.options.moveStep * 
this.default.height / 100
                        };
 
                        //setup area
@@ -132,30 +122,6 @@
                        position.top -=  proportion * this.zoomStep.height;
                        position.width += 2 *  proportion * this.zoomStep.width;
                        position.height += 2 *  proportion * 
this.zoomStep.height;
-                       this._applyPosition( position );
-               },
-
-               moveLeft: function () {
-                       var position = this._getPosition();
-                       position.left -= this.moveStep.width;
-                       this._applyPosition( position );
-               },
-
-               moveRight: function () {
-                       var position = this._getPosition();
-                       position.left += this.moveStep.width;
-                       this._applyPosition( position );
-               },
-
-               moveUp: function () {
-                       var position = this._getPosition();
-                       position.top -= this.moveStep.height;
-                       this._applyPosition( position );
-               },
-
-               moveDown: function () {
-                       var position = this._getPosition();
-                       position.top += this.moveStep.height;
                        this._applyPosition( position );
                },
 

-- 
To view, visit https://gerrit.wikimedia.org/r/101482
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia2d36a8962348190b604dee71c798a79a06fd4e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to