Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
server
team-presentation
Commits
76eea300
Commit
76eea300
authored
Jun 19, 2017
by
Hakim El Hattab
Browse files
zoom.js uses ctrl+click for linux, alt+click for others #1909
parent
af6754bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugin/zoom-js/zoom.js
View file @
76eea300
// Custom reveal.js integration
(
function
(){
document
.
querySelector
(
'
.reveal .slides
'
).
addEventListener
(
'
mousedown
'
,
function
(
event
)
{
var
modifier
=
(
Reveal
.
getConfig
().
zoomKey
?
Reveal
.
getConfig
().
zoomKey
:
'
alt
'
)
+
'
Key
'
;
var
defaultModifier
=
/Linux/
.
test
(
window
.
navigator
.
platform
)
?
'
ctrl
'
:
'
alt
'
;
var
modifier
=
(
Reveal
.
getConfig
().
zoomKey
?
Reveal
.
getConfig
().
zoomKey
:
defaultModifier
)
+
'
Key
'
;
var
zoomLevel
=
(
Reveal
.
getConfig
().
zoomLevel
?
Reveal
.
getConfig
().
zoomLevel
:
2
);
if
(
event
[
modifier
]
&&
!
Reveal
.
isOverview
()
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment