Explorar el Código

stop native touch selection on popover

Adam Shaw hace 9 años
padre
commit
87923950f4
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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)
 			.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
 		this.el.on('click', '.fc-close', function() {
 			_this.hide();