Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DoNaTio s.r.o.
PiPo
Commits
2daab4b4
Commit
2daab4b4
authored
Dec 11, 2014
by
Monika
Browse files
push ball on click mouse
parent
3130d324
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/ClientBall.js
View file @
2daab4b4
...
...
@@ -54,6 +54,7 @@ function ClientBall($el) {
attributes
.
y
+=
attributes
.
vy
;
},
redraw
:
function
()
{
console
.
log
(
attributes
.
x
,
attributes
.
y
,
'
ball
'
);
attributes
.
el
.
css
(
'
top
'
,
attributes
.
y
);
attributes
.
el
.
css
(
'
left
'
,
attributes
.
x
);
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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