How to detect one finger and two finger touch

Hi, Is there any way to detects or identify one finger and two finger touch in javascript and electron.

I have an HTML container and I want to move the using two finger and rotate the container through one finger touch. Please let me is there any way to achieve this?

Thanks
Nikhilesh