Getting Mouse Position using RxJS

Jawadhasan
2 min readFeb 25, 2024
Photo by Shane on Unsplash

Introduction

This will be a short post just to demo some basic event capturing using RxJS.

Requirement

We want to capture mouse coordinates on the screen and use those values to move a shape around. You can use it for other effects as fit for your requirements.

Code

--

--

Jawadhasan

Software Solutions Team Lead | Cloud Architect | Solutions Architect