lib/ProMotion/table/extensions/longpressable.rb in ProMotion-2.0.0 vs lib/ProMotion/table/extensions/longpressable.rb in ProMotion-2.0.1
- old
+ new
@@ -15,10 +15,10 @@
def on_long_press(gesture)
return unless gesture.state == UIGestureRecognizerStateBegan
gesture_point = gesture.locationInView(table_view)
index_path = table_view.indexPathForRowAtPoint(gesture_point)
data_cell = self.promotion_table_data.cell(index_path: index_path)
- trigger_action(data_cell[:long_press_action], data_cell[:arguments]) if data_cell[:long_press_action]
+ trigger_action(data_cell[:long_press_action], data_cell[:arguments], index_path) if data_cell[:long_press_action]
end
end
end
end