๐ How to use it:
- Open DevTools (F12 or Ctrl+Shift+I in Chrome).
- Go to the More tools > Sensors tab.
1๏ธโฃ Override Geolocation
Simulates the userโs location anywhere in the world.
Example: If youโre developing a location-based app, you can test how it behaves in New York, Tokyo, or Buenos Aires without moving.
2๏ธโฃ Simulate Device Orientation
Modifies accelerometer and gyroscope values to test device rotation changes.
Example: If youโre building an augmented reality app or a responsive website, you can check how it behaves when rotating the device.
3๏ธโฃ Force Touch Events
Simulates touch interactions on mobile devices.
Example: If youโre optimizing touch gestures (swipes, pinches, long presses), you can test them without a physical device.
4๏ธโฃ Emulate an Inactive Sensor
Simulates disabled or inactive sensors, such as proximity detection.
Example: Useful for testing how an app behaves when certain sensors are unavailable on the userโs device.
๐ Have you tried these options in your projects? ๐
โน๏ธ More info on Googleโs website:
https://developer.chrome.com/docs/devtools/sensors?hl=en
Top comments (0)