calculating distance between two elements independent from screen size or resolution | XM Community
Skip to main content
Question

calculating distance between two elements independent from screen size or resolution

  • October 8, 2021
  • 0 replies
  • 27 views

Hello,
I would like to calculate the distance between two draggable elements and compare it between participants. At the moment, the distance is measured in pixels but I need it to be independent from participants' screen size or resolution.
How do I determine the maximum distance and calculate the relative distance?
I would be grateful for any help.