Skip to content

Commit

Permalink
Version 9:
Browse files Browse the repository at this point in the history
* Renamed "Context Menu Compatibility Mode" to "Context Menu On Long-Press".  Hopefully fewer people toggle it without realizing what it does this way.
* Added "Reverse Mouse Wheel Zoom" option to the Extra section.
  • Loading branch information
bp2008 committed Apr 25, 2018
1 parent 3cccaab commit 75f873c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ui3.htm
Expand Up @@ -33,7 +33,7 @@
};
</script>
<script type="text/javascript">
var ui_version = "8";
var ui_version = "9";
var bi_version = "%%VERSION%%";
var combined_version = ui_version + "-" + bi_version;
//if (!!navigator.userAgent.match(/ Android /))
Expand Down
27 changes: 18 additions & 9 deletions ui3/ui3.js
Expand Up @@ -761,7 +761,7 @@ var defaultSettings =
, value: "0|0|1|187" // 187: =
, hotkey: true
, label: "Digital Zoom In"
, hint: "This has the same function as rolling a mouse wheel upward."
, hint: "This has the same function as rolling a mouse wheel one notch."
, actionDown: BI_Hotkey_DigitalZoomIn
, allowRepeatKey: true
, category: "Hotkeys"
Expand All @@ -771,7 +771,7 @@ var defaultSettings =
, value: "0|0|1|189" // : 189: -
, hotkey: true
, label: "Digital Zoom Out"
, hint: "This has the same function as rolling a mouse wheel downward."
, hint: "This has the same function as rolling a mouse wheel one notch."
, actionDown: BI_Hotkey_DigitalZoomOut
, allowRepeatKey: true
, category: "Hotkeys"
Expand Down Expand Up @@ -1133,11 +1133,19 @@ var defaultSettings =
, hint: 'If enabled, session status is shown in the lower-right corner when the UI loads.'
, category: "Extra"
}
, {
key: "ui3_wheelZoomReverse"
, value: "0"
, inputType: "checkbox"
, label: 'Reverse Mouse Wheel Zoom'
, hint: "By default, UI3 follows the de-facto standard for mouse wheel zoom, where up zooms in."
, category: "Extra"
}
, {
key: "ui3_contextMenus_longPress"
, value: "0"
, inputType: "checkbox"
, label: 'Context Menu Compatibility Mode<br><a href="javascript:UIHelp.LearnMore(\'Context Menu Compatibility Mode\')">(learn more)</a>'
, label: 'Context Menu On Long-Press<br><a href="javascript:UIHelp.LearnMore(\'Context Menu On Long-Press\')">(learn more)</a>'
, onChange: OnChange_ui3_contextMenus_longPress
, category: "Extra"
}
Expand Down Expand Up @@ -10020,13 +10028,14 @@ function ImageRenderer()
mouseX = e.pageX;
mouseY = e.pageY;
}
// Initialization script for ImageRenderer -- called on document ready
$layoutbody.mousewheel(function (e, delta, deltaX, deltaY)
{
mouseCoordFixer.fix(e);
if (playbackControls.MouseInSettingsPanel(e))
return;
e.preventDefault();
if (settings.ui3_wheelZoomReverse === "1")
deltaY *= -1;
self.DigitalZoomNow(deltaY, false);
});
}
Expand Down Expand Up @@ -15709,8 +15718,8 @@ function UIHelpTool()
case 'Double-Click to Fullscreen':
Double_Click_to_Fullscreen();
break;
case 'Context Menu Compatibility Mode':
Context_Menu_Compatibility_Mode();
case 'Context Menu On Long-Press':
Context_Menu_On_Long_Press();
break;
case 'Camera Group Webcasting':
Camera_Group_Webcasting();
Expand All @@ -15723,20 +15732,20 @@ function UIHelpTool()
break;
}
}
var Context_Menu_Compatibility_Mode = function ()
var Context_Menu_On_Long_Press = function ()
{
$('<div style="padding:10px;font-size: 1.2em;max-width:500px;">'
+ 'Many useful functions in this interface are accessed by context menus (a.k.a. "Right-click menus").<br><br>'
+ 'Context menus are normally opened by right clicking. On most touchscreen devices, instead you must press and hold.<br><br>'
+ 'However on some devices it is impossible to open context menus the normal way. If this applies to you,'
+ ' enable "Context Menu Compatibility Mode". This will change how context menus'
+ ' enable "Context Menu On Long-Press". This will change how context menus'
+ ' are triggered so they should open when the left mouse button is held down for a moment.'
+ (browser_is_ios
? ('<br><br>Your operating system was detected as iOS, where there is a known compatibility issue with context menus.'
+ ' You may be unable to access the context menu regardless of this setting.')
: '')
+ '</div>')
.modalDialog({ title: "Context Menu Compatibility Mode", closeOnOverlayClick: true });
.modalDialog({ title: "Context Menu On Long-Press", closeOnOverlayClick: true });
}
var Double_Click_to_Fullscreen = function ()
{
Expand Down

0 comments on commit 75f873c

Please sign in to comment.