[core] Fixed onClick behavior in fling mode