mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-07 21:24:26 +02:00
Resolves #987 -- start goal on the right
This commit is contained in:
parent
88a6d34e91
commit
27e6454aa0
3 changed files with 7 additions and 5 deletions
|
@ -223,7 +223,9 @@ var Level = Sandbox.extend({
|
|||
// repo visualization a bit to make room. This way, you could have the goal window hang out on
|
||||
// the right side of the screen and still see the repo visualization.
|
||||
this.goalVis.customEvents.on('drag', function(event, ui) {
|
||||
if (ui.position.left > 0.5 * $(window).width()) {
|
||||
// our left is a negative value now that we start goal windows on the
|
||||
// right, so we have to take absolute value
|
||||
if (Math.abs(ui.position.left) < 0.4 * $(window).width()) {
|
||||
if (!$('#goalPlaceholder').is(':visible')) {
|
||||
$('#goalPlaceholder').show();
|
||||
this.mainVis.myResize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue