How to apply a gesture to folders only and exclude files?

Hi all,

I've just setup a two-finger right-swipe gesture that works in the Finder and goes inside a selected folder (of course, the left swipe goes to the parent folder).

In fact, the first gesture emulates the Command + Down Arrow. Thus, it opens a file once it's in the latest folder. Which is a behaviour I don't want.

My question: is is possible to limit the gesture/action to folders only and exclude files?

Any idea welcome. Thanks in advance.