/    Sign up×
Community /Pin to ProfileBookmark

Need help jquery draggable so work in touchsreen

I am trying make a slider like [URL=”www.pureexample.com/jquery-ui/draggable-axis.html”]here[/URL]

its working properly on any browser but not on touchsreen like Ipad,

i have tried jQuery UI Touch Punch from [URL=”http://murfitt.net/blog/jquery-ui-touch-support-ipad-and-other-tablets-and-smartphones”]here[/URL] but still not work.

Here my simple JS

[CODE]$(‘#magnify-glass’).draggable({
axis: “x”,
containment: “parent”,
snap: ‘.snap’,
snapMode : ‘inner’,
snapTolerance : 30,
cursor: ‘move’,

drag: function(event, ui) {
updateImagePosition(event, ui);
}
});[/CODE]

and my CSS

[CODE]#magnify-glass {

width: 122px;
height: 121px;
background: url(“images/magnify.png”) no-repeat;
position: absolute;
top: -50px;
left: 0;
z-index: 10;
display: block;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
opacity: 0;
}

#shelf #magnify-glass:hover {
cursor: pointer !important;
}[/CODE]

Thanks in advance for your help

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @xsyam spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...