|
|
|
@ -25,6 +25,9 @@ var HandTool = {
@@ -25,6 +25,9 @@ var HandTool = {
|
|
|
|
|
this.handTool = new GrabToPan({ |
|
|
|
|
element: options.container, |
|
|
|
|
onActiveChanged: function(isActive) { |
|
|
|
|
if (!toggleHandTool) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (isActive) { |
|
|
|
|
toggleHandTool.title = |
|
|
|
|
mozL10n.get('hand_tool_disable.title', null, 'Disable hand tool'); |
|
|
|
@ -38,7 +41,9 @@ var HandTool = {
@@ -38,7 +41,9 @@ var HandTool = {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
if (toggleHandTool) { |
|
|
|
|
toggleHandTool.addEventListener('click', this.handTool.toggle, false); |
|
|
|
|
} |
|
|
|
|
// TODO: Read global prefs and call this.handTool.activate() if needed.
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|