Browse Source

Fixes #1222 Handling touchstart as special case no longer necessary

pull/1243/head
jlukic 10 years ago
parent
commit
c405e07cc0
5 changed files with 5 additions and 30 deletions
  1. 7
      dist/components/dropdown.js
  2. 12
      dist/components/dropdown.min.js
  3. 7
      dist/semantic.js
  4. 2
      dist/semantic.min.js
  5. 7
      src/definitions/modules/dropdown.js

7
dist/components/dropdown.js

@ -589,12 +589,7 @@ $.fn.dropdown = function(parameters) {
openingSubMenu = ($choice.find(selector.menu).size() > 0)
;
if( !openingSubMenu ) {
if(event.type == 'touchstart') {
$choice.one('click', callback);
}
else {
callback();
}
callback();
}
}

12
dist/components/dropdown.min.js
File diff suppressed because it is too large
View File

7
dist/semantic.js

@ -4081,12 +4081,7 @@ $.fn.dropdown = function(parameters) {
openingSubMenu = ($choice.find(selector.menu).size() > 0)
;
if( !openingSubMenu ) {
if(event.type == 'touchstart') {
$choice.one('click', callback);
}
else {
callback();
}
callback();
}
}

2
dist/semantic.min.js
File diff suppressed because it is too large
View File

7
src/definitions/modules/dropdown.js

@ -589,12 +589,7 @@ $.fn.dropdown = function(parameters) {
openingSubMenu = ($choice.find(selector.menu).size() > 0)
;
if( !openingSubMenu ) {
if(event.type == 'touchstart') {
$choice.one('click', callback);
}
else {
callback();
}
callback();
}
}

Loading…
Cancel
Save