Better debugging and fix click on mobile devices that implement draggable

This commit is contained in:
2015-10-07 17:43:45 +02:00
parent b540f5945e
commit 546e1fe10d
4 changed files with 5 additions and 15 deletions
@@ -1,4 +1,4 @@
App.SectionTabHeaderComponent= Ember.Component.extend DragNDrop.Droppable,
App.SectionTabHeaderComponent= Ember.Component.extend
layoutName: 'section/tab-header'
classNameBindings: ['section_header_class', 'section_active:active']
classNames: ['section-tab-header']
@@ -29,13 +29,13 @@ DragNDrop.Draggable = Ember.Mixin.create
touchStart: (ev)->
ev.preventDefault()
target = @$()
return unless target.prop 'draggable'
touch = ev.originalEvent.changedTouches[0]
@touchStartEvent =
left: parseFloat(target.css('left'))
top: parseFloat(target.css('top'))
pageX: touch.pageX
pageY: touch.pageY
return unless target.prop 'draggable'
touchMove: (ev)->
ev.preventDefault()