Преглед изворни кода

stop native touch selection on popover

Adam Shaw пре 9 година
родитељ
комит
87923950f4
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/common/Popover.js

+ 3 - 0
src/common/Popover.js

@@ -65,6 +65,9 @@ var Popover = Class.extend(ListenerMixin, {
 			.append(options.content)
 			.append(options.content)
 			.appendTo(options.parentEl);
 			.appendTo(options.parentEl);
 
 
+		// prevent a touch-related native selection
+		preventSelection(this.el);
+
 		// when a click happens on anything inside with a 'fc-close' className, hide the popover
 		// when a click happens on anything inside with a 'fc-close' className, hide the popover
 		this.el.on('click', '.fc-close', function() {
 		this.el.on('click', '.fc-close', function() {
 			_this.hide();
 			_this.hide();