This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Krzysiek Podruczny
Posted Apr 20 - Read on Facebook

Hey, I'm trying to debug some code but got stuck.
I want to get dimensions of text selection and it works for single lines. When I try to select multiple lines of text, results are off. It seems to return the dimensions of window, not current selection.

I've tried running the code on JSFiddle and it works correctly there: https://jsfiddle.net/gonfzpgu/
Compare the results with Framer prototype for different window sizes: https://framer.cloud/cJlXd/

Do you have any ideas why this is happening?