Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Added support for carouselTap message to be emitted when slide clicked/tapped #321

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

scm6079
Copy link

@scm6079 scm6079 commented Apr 30, 2015

This commit adds support for a carouselTap message to be emitted when the carousel has an item tapped (as opposed to dragged) - which allows parents to create controls that perform actions on tap (e.g. opening a full-screen viewer).

Within parent scopes (controller/directive/etc) you can:

     $scope.$on('carouselTap', function(event, target){
        console.log('YOU TAPPED!  The item you tapped is:', target );
     });

Those can use the target passed to determine an appropriate action as necessary.

scm6079 added 2 commits April 30, 2015 15:35
… has an item tapped (as opposed to dragged) - which allows parents to create controls that perform actions on tap (e.g. opening a full-screen viewer).
@revolunet
Copy link
Owner

thanks Scott, can you please also add the information in the README ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants