Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-vectordraw
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
xblock-vectordraw
Commits
577819fc
Unverified
Commit
577819fc
authored
Sep 05, 2016
by
Brandon DeRosier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address comment from Eugeny
parent
d27bd465
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vectordraw/public/js/vectordraw.js
+2
-2
No files found.
vectordraw/public/js/vectordraw.js
View file @
577819fc
...
...
@@ -409,7 +409,7 @@ function VectorDrawXBlock(runtime, element, init_args) {
return
true
;
};
VectorDraw
.
prototype
.
objectsUnderMouse
=
function
(){
VectorDraw
.
prototype
.
objectsUnderMouse
=
function
()
{
var
targetObjects
=
[];
var
highlightedObjects
=
this
.
board
.
highlightedObjects
var
keys
=
Object
.
keys
(
highlightedObjects
);
...
...
@@ -424,7 +424,7 @@ function VectorDrawXBlock(runtime, element, init_args) {
// Can't create a vector if none is selected from the list.
var
selected
=
this
.
getSelectedElement
();
var
coords
=
this
.
getMouseCoords
(
evt
);
var
targetObjects
=
this
.
objectsUnderMouse
(
coords
);
var
targetObjects
=
this
.
objectsUnderMouse
();
if
(
!
_
.
isEmpty
(
selected
)
&&
(
!
targetObjects
||
_
.
all
(
targetObjects
,
this
.
canCreateVectorOnTopOf
.
bind
(
this
))))
{
var
point_coords
=
[
coords
.
usrCoords
[
1
],
coords
.
usrCoords
[
2
]];
if
(
selected
.
type
===
'vector'
)
{
...
...
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