Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
316
Merge Requests
316
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
59211863
Commit
59211863
authored
Jan 17, 2015
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2409121
by stefan.r: Update jQuery Touch Punch library to 0.2.3
parent
5c16ee72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
core/assets/vendor/jquery-ui-touch-punch/jquery.ui.touch-punch.js
...ets/vendor/jquery-ui-touch-punch/jquery.ui.touch-punch.js
+4
-4
core/core.libraries.yml
core/core.libraries.yml
+1
-1
No files found.
core/assets/vendor/jquery-ui-touch-punch/jquery.ui.touch-punch.js
View file @
59211863
/*
* jQuery UI Touch Punch 0.2.
2
/*
!
* jQuery UI Touch Punch 0.2.
3
*
* Copyright 2011, Dave Furfero
* Copyright 2011
–2014
, Dave Furfero
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Depends:
* jquery.ui.widget.js
* jquery.ui.mouse.js
*/
(
function
(
b
){
b
.
support
.
touch
=
"
ontouchend
"
in
document
;
if
(
!
b
.
support
.
touch
){
return
;}
var
c
=
b
.
ui
.
mouse
.
prototype
,
e
=
c
.
_mouseInit
,
a
;
function
d
(
g
,
h
){
if
(
g
.
originalEvent
.
touches
.
length
>
1
){
return
;}
g
.
preventDefault
();
var
i
=
g
.
originalEvent
.
changedTouches
[
0
],
f
=
document
.
createEvent
(
"
MouseEvents
"
);
f
.
initMouseEvent
(
h
,
true
,
true
,
window
,
1
,
i
.
screenX
,
i
.
screenY
,
i
.
clientX
,
i
.
clientY
,
false
,
false
,
false
,
false
,
0
,
null
);
g
.
target
.
dispatchEvent
(
f
);}
c
.
_touchStart
=
function
(
g
){
var
f
=
this
;
if
(
a
||!
f
.
_mouseCapture
(
g
.
originalEvent
.
changedTouches
[
0
])){
return
;}
a
=
true
;
f
.
_touchMoved
=
false
;
d
(
g
,
"
mouseover
"
);
d
(
g
,
"
mousemove
"
);
d
(
g
,
"
mousedown
"
);};
c
.
_touchMove
=
function
(
f
){
if
(
!
a
){
return
;}
this
.
_touchMoved
=
true
;
d
(
f
,
"
mousemove
"
);};
c
.
_touchEnd
=
function
(
f
){
if
(
!
a
){
return
;}
d
(
f
,
"
mouseup
"
);
d
(
f
,
"
mouseout
"
);
if
(
!
this
.
_touchMoved
){
d
(
f
,
"
click
"
);}
a
=
false
;};
c
.
_mouseInit
=
function
(){
var
f
=
this
;
f
.
element
.
bind
(
"
touchstart
"
,
b
.
proxy
(
f
,
"
_touchStart
"
)).
bind
(
"
touchmove
"
,
b
.
proxy
(
f
,
"
_touchMove
"
)).
bind
(
"
touchend
"
,
b
.
proxy
(
f
,
"
_touchEnd
"
));
e
.
call
(
f
);};})(
jQuery
);
\ No newline at end of file
!
function
(
a
){
function
f
(
a
,
b
){
if
(
!
(
a
.
originalEvent
.
touches
.
length
>
1
)){
a
.
preventDefault
();
var
c
=
a
.
originalEvent
.
changedTouches
[
0
],
d
=
document
.
createEvent
(
"
MouseEvents
"
);
d
.
initMouseEvent
(
b
,
!
0
,
!
0
,
window
,
1
,
c
.
screenX
,
c
.
screenY
,
c
.
clientX
,
c
.
clientY
,
!
1
,
!
1
,
!
1
,
!
1
,
0
,
null
),
a
.
target
.
dispatchEvent
(
d
)}}
if
(
a
.
support
.
touch
=
"
ontouchend
"
in
document
,
a
.
support
.
touch
){
var
e
,
b
=
a
.
ui
.
mouse
.
prototype
,
c
=
b
.
_mouseInit
,
d
=
b
.
_mouseDestroy
;
b
.
_touchStart
=
function
(
a
){
var
b
=
this
;
!
e
&&
b
.
_mouseCapture
(
a
.
originalEvent
.
changedTouches
[
0
])
&&
(
e
=!
0
,
b
.
_touchMoved
=!
1
,
f
(
a
,
"
mouseover
"
),
f
(
a
,
"
mousemove
"
),
f
(
a
,
"
mousedown
"
))},
b
.
_touchMove
=
function
(
a
){
e
&&
(
this
.
_touchMoved
=!
0
,
f
(
a
,
"
mousemove
"
))},
b
.
_touchEnd
=
function
(
a
){
e
&&
(
f
(
a
,
"
mouseup
"
),
f
(
a
,
"
mouseout
"
),
this
.
_touchMoved
||
f
(
a
,
"
click
"
),
e
=!
1
)},
b
.
_mouseInit
=
function
(){
var
b
=
this
;
b
.
element
.
bind
({
touchstart
:
a
.
proxy
(
b
,
"
_touchStart
"
),
touchmove
:
a
.
proxy
(
b
,
"
_touchMove
"
),
touchend
:
a
.
proxy
(
b
,
"
_touchEnd
"
)}),
c
.
call
(
b
)},
b
.
_mouseDestroy
=
function
(){
var
b
=
this
;
b
.
element
.
unbind
({
touchstart
:
a
.
proxy
(
b
,
"
_touchStart
"
),
touchmove
:
a
.
proxy
(
b
,
"
_touchMove
"
),
touchend
:
a
.
proxy
(
b
,
"
_touchEnd
"
)}),
d
.
call
(
b
)}}}(
jQuery
);
\ No newline at end of file
core/core.libraries.yml
View file @
59211863
...
...
@@ -765,7 +765,7 @@ jquery.ui.tooltip:
jquery.ui.touch-punch
:
remote
:
https://github.com/furf/jquery-ui-touch-punch
version
:
0.2.
2
version
:
0.2.
3
license
:
name
:
GNU-GPL-2.0-or-later
url
:
https://github.com/furf/jquery-ui-touch-punch
...
...
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