Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
raphael
Project
Project
Details
Activity
Releases
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
nhn
raphael
Commits
425ba722
Commit
425ba722
authored
May 07, 2010
by
DmitryBaranovskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.4.1
• Small bug fix in multi-touch implementation
parent
9dc9ccb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
raphael.js
raphael.js
+5
-5
No files found.
raphael.js
View file @
425ba722
/*!
* Raphael 1.4 - JavaScript Vector Library
* Raphael 1.4
.1
- JavaScript Vector Library
*
* Copyright (c) 2010 Dmitry Baranovskiy (http://raphaeljs.com)
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
...
...
@@ -19,7 +19,7 @@ Raphael = (function () {
}
return
create
[
apply
](
R
,
arguments
);
}
R
.
version
=
"1.4"
;
R
.
version
=
"1.4
.1
"
;
var
separator
=
/
[
,
]
+/
,
elements
=
/^
(
circle|rect|path|ellipse|text|image
)
$/
,
proto
=
"prototype"
,
...
...
@@ -2487,7 +2487,7 @@ Raphael = (function () {
return
function
(
obj
,
type
,
fn
,
element
)
{
var
f
=
function
(
e
)
{
if
(
supportsTouch
)
{
for
(
var
i
=
0
,
ii
=
e
.
targetTouches
.
length
;
i
<
ii
;
i
++
)
{
for
(
var
i
=
0
,
ii
=
e
.
targetTouches
&&
e
.
targetTouches
.
length
;
i
<
ii
;
i
++
)
{
if
(
e
.
targetTouches
[
i
].
target
==
obj
)
{
var
olde
=
e
;
e
=
e
.
targetTouches
[
i
];
...
...
@@ -2553,7 +2553,7 @@ Raphael = (function () {
Element
[
proto
].
drag
=
function
(
onmove
,
onstart
,
onend
)
{
this
.
_drag
=
{};
var
el
=
this
.
mousedown
(
function
(
e
)
{
e
.
preventDefault
();
(
e
.
originalEvent
?
e
.
originalEvent
:
e
)
.
preventDefault
();
this
.
_drag
.
x
=
e
.
clientX
;
this
.
_drag
.
y
=
e
.
clientY
;
this
.
_drag
.
id
=
e
.
identifier
;
...
...
@@ -2571,7 +2571,7 @@ Raphael = (function () {
if
(
touch
.
identifier
==
el
.
_drag
.
id
)
{
x
=
touch
.
clientX
;
y
=
touch
.
clientY
;
e
.
preventDefault
();
(
e
.
originalEvent
?
e
.
originalEvent
:
e
)
.
preventDefault
();
break
;
}
}
...
...
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