Implement hand tool
The logic for the hand tool is implemented in a separate project, maintained at https://github.com/Rob--W/grab-to-pan.js Integration notes - Added toggle as an entry under the Secondary toolbar - Added shortcut "h" to toggle hand tool (to-do: document this in wiki after merge). This shortcut is also used in Adobe's Acrobat Reader. To-do: localizations for: hand_tool_enable.title= hand_tool_enable_label= hand_tool_disable.title= hand_tool_disable_label= To-do (wish): persistence of hand tool preference, preferably a global setting. secondaryToolbarButton-handTool.png created by Stephen Horlander <shorlander@mozilla.com>
This commit is contained in:
parent
f0c830dba2
commit
3914768085
10 changed files with 330 additions and 2 deletions
|
@ -75,6 +75,8 @@ limitations under the License.
|
|||
<script type="text/javascript" src="secondary_toolbar.js"></script>
|
||||
<script type="text/javascript" src="password_prompt.js"></script>
|
||||
<script type="text/javascript" src="presentation_mode.js"></script>
|
||||
<script type="text/javascript" src="grab_to_pan.js"></script>
|
||||
<script type="text/javascript" src="hand_tool.js"></script>
|
||||
<!--#endif-->
|
||||
|
||||
<script type="text/javascript" src="debugger.js"></script>
|
||||
|
@ -163,6 +165,12 @@ limitations under the License.
|
|||
<button id="pageRotateCcw" class="secondaryToolbarButton rotateCcw" title="Rotate Counterclockwise" tabindex="26" data-l10n-id="page_rotate_ccw">
|
||||
<span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span>
|
||||
</button>
|
||||
|
||||
<div class="horizontalToolbarSeparator"></div>
|
||||
|
||||
<button id="toggleHandTool" class="secondaryToolbarButton handTool" title="Enable hand tool" tabindex="27" data-l10n-id="hand_tool_enable">
|
||||
<span data-l10n-id="hand_tool_enable_label">Enable hand tool</span>
|
||||
</button>
|
||||
</div>
|
||||
</div> <!-- secondaryToolbar -->
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue