Skip to content

Commit

Permalink
Adds thumbnail captions support.
Browse files Browse the repository at this point in the history
Checks for presence of MSPointerDown event to enable touch mode.
  • Loading branch information
mattyza committed Feb 15, 2013
1 parent dffa87f commit 317ea57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.flexslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
slider.vars = $.extend({}, $.flexslider.defaults, options);

var namespace = slider.vars.namespace,
touch = (("ontouchstart" in window) || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch,
touch = (( "ontouchstart" in window ) || ( "MSPointerDown" in window ) || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch,
// depricating this idea, as devices are being released with both of these events
//eventType = (touch) ? "touchend" : "click",
eventType = "click touchend",
eventType = "click touchend MSPointerUp",
watchedEvent = "",
watchedEventClearTimer,
vertical = slider.vars.direction === "vertical",
Expand Down

0 comments on commit 317ea57

Please sign in to comment.