Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
3ca9ea32
Commit
3ca9ea32
authored
12 years ago
by
Ryan Seys
Browse files
Options
Downloads
Patches
Plain Diff
Fix zoom bug some more
parent
6d0750f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
record-and-playback/slides/scripts/publish/slides.rb
+7
-7
7 additions, 7 deletions
record-and-playback/slides/scripts/publish/slides.rb
with
7 additions
and
7 deletions
record-and-playback/slides/scripts/publish/slides.rb
+
7
−
7
View file @
3ca9ea32
...
...
@@ -27,7 +27,7 @@ def processPanAndZooms
x_prev
=
nil
y_prev
=
nil
timestamp_orig_prev
=
nil
timestamp_prev
=
((
$panzoom_events
.
first
[
:timestamp
].
to_f
-
$join_time
)
/
1000
).
round
(
1
)
timestamp_prev
=
nil
last_time
=
$panzoom_events
.
last
[
:timestamp
].
to_f
$panzoom_events
.
each
do
|
panZoomEvent
|
# Get variables
...
...
@@ -68,13 +68,13 @@ def processPanAndZooms
$xml
.
viewBox
"
#{
(
$vbox_width
-
((
1
-
((
x_prev
.
to_f
.
abs
)
*
$magic_mystery_number
/
100.0
))
*
$vbox_width
))
}
#{
(
$vbox_height
-
((
1
-
((
y_prev
.
to_f
.
abs
)
*
$magic_mystery_number
/
100.0
))
*
$vbox_height
)).
round
(
2
)
}
#{
((
w_ratio_prev
.
to_f
/
100.0
)
*
$vbox_width
).
round
(
1
)
}
#{
((
h_ratio_prev
.
to_f
/
100.0
)
*
$vbox_height
).
round
(
1
)
}
"
end
end
timestamp_prev
=
timestamp
timestamp_orig_prev
=
timestamp_orig
h_ratio_prev
=
h_ratio
w_ratio_prev
=
w_ratio
x_prev
=
x
y_prev
=
y
end
timestamp_prev
=
timestamp
timestamp_orig_prev
=
timestamp_orig
h_ratio_prev
=
h_ratio
w_ratio_prev
=
w_ratio
x_prev
=
x
y_prev
=
y
end
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment