Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
殷洪(管理员)
/
raphael
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
13173829
authored
May 13, 2010
by
DmitryBaranovskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.4.3
Fixed important bug with touch events
parent
dcd2739f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
raphael-min.js
+0
-0
raphael.js
+6
-6
No files found.
raphael-min.js
View file @
13173829
This source diff could not be displayed because it is too large. You can
view the blob
instead.
raphael.js
View file @
13173829
/*!
* Raphael 1.4.
2
- JavaScript Vector Library
* Raphael 1.4.
3
- 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.
2
"
;
R
.
version
=
"1.4.
3
"
;
var
separator
=
/
[
,
]
+/
,
elements
=
/^
(
circle|rect|path|ellipse|text|image
)
$/
,
proto
=
"prototype"
,
...
...
@@ -2491,6 +2491,7 @@ Raphael = (function () {
addEvent
=
(
function
()
{
if
(
doc
.
addEventListener
)
{
return
function
(
obj
,
type
,
fn
,
element
)
{
var
realName
=
supportsTouch
&&
touchMap
[
type
]
?
touchMap
[
type
]
:
type
;
var
f
=
function
(
e
)
{
if
(
supportsTouch
&&
touchMap
[
has
](
type
))
{
for
(
var
i
=
0
,
ii
=
e
.
targetTouches
&&
e
.
targetTouches
.
length
;
i
<
ii
;
i
++
)
{
...
...
@@ -2506,9 +2507,9 @@ Raphael = (function () {
}
return
fn
.
call
(
element
,
e
);
};
obj
.
addEventListener
(
typ
e
,
f
,
false
);
obj
.
addEventListener
(
realNam
e
,
f
,
false
);
return
function
()
{
obj
.
removeEventListener
(
typ
e
,
f
,
false
);
obj
.
removeEventListener
(
realNam
e
,
f
,
false
);
return
true
;
};
};
...
...
@@ -2533,9 +2534,8 @@ Raphael = (function () {
(
function
(
eventName
)
{
R
[
eventName
]
=
Element
[
proto
][
eventName
]
=
function
(
fn
)
{
if
(
R
.
is
(
fn
,
"function"
))
{
var
realName
=
supportsTouch
&&
touchMap
[
eventName
]
?
touchMap
[
eventName
]
:
eventName
;
this
.
events
=
this
.
events
||
[];
this
.
events
.
push
({
name
:
eventName
,
f
:
fn
,
unbind
:
addEvent
(
this
.
shape
||
this
.
node
||
doc
,
real
Name
,
fn
,
this
)});
this
.
events
.
push
({
name
:
eventName
,
f
:
fn
,
unbind
:
addEvent
(
this
.
shape
||
this
.
node
||
doc
,
event
Name
,
fn
,
this
)});
}
return
this
;
};
...
...
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