Skip to content
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.

Use indexPathForItemAtPoint: for long press. #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 14, 2015

  1. Use indexPathForItemAtPoint: for long press.

    `handleLongPressGesture:` was using `indexPathForItemClosestToPoint:` method to
    retrieve the index path of the pressed cell. This works well on layouts
    that fill the entire collection view space but not on other layouts: in the
    latter case, the closest cell will be selected whereas this is the one under the
    finger we want to be selected.
    
    It now uses `indexPathForItemAtPoint:` instead of
    `indexPathForItemClosestToPoint:` to get the touched cell.
    pbernery committed Jun 14, 2015
    Configuration menu
    Copy the full SHA
    4c95c4b View commit details
    Browse the repository at this point in the history