Ionic.activator behavior: first 30px


#1

Hi, everyone!

After noticing that clickable elements not always get the ‘activated’ class applied when clicked, I explored the ionic.js file and found this condition in the activator method:

var hitX = ionic.tap.pointerCoord(e).x;
if (hitX > 0 && hitX < 30) {
        return;
}

So, if you touch anything in the first 30 pixels (buttons, lists, anyhting clickable), it makes the action but it doesn’t makes the visual effect.

Anyone knows what the purpose of this is? It was not there in earlier versions.