Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Performance improvements #168

Merged
merged 46 commits into from
Jun 26, 2019
Merged

Performance improvements #168

merged 46 commits into from
Jun 26, 2019

Conversation

jarnovanrhijn
Copy link
Contributor

Great performance improvements

  • Replaced css left & top with translate()
  • Cached widths and heights where possible
  • Replaced new Date() with Date.now()

deviousasti and others added 30 commits May 14, 2019 10:19
@yotamberk
Copy link
Owner

Sorry for the mistake...

@jarnovanrhijn
Copy link
Contributor Author

@yotamberk haha no problem! I was happy to see it merged for a second because :P i thought you had fixed the glitching issue.

At least we have a fresh start in this PR ;)

@yotamberk
Copy link
Owner

yotamberk commented Jun 8, 2019

I've been playing around with items/backgroundAreasWithGroups.html example dragging a ranged item to the far right near the the last items and playing around touching and untouching the dragged ranged item with the point item on the second group causes really weird behavior. It seems that something with the top calculation (now used with translateY?) might be causing the glitching and bad rendering. I've yet to figure it out exactly. I wanted to share this information while I continue to investigate.

NOTICE: changing the orientation option to top seems to work totally fine with not gliching.

Please continue to inspect the issue too so we can solve this and merge this GREAT pr!

Copy link
Owner

@yotamberk yotamberk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've finally managed to figure out what's causing the glichiness!!!
Fix these comments and we can merge the changes!

props.borderRootHeight= dom.root.offsetHeight - dom.root.clientHeight;
props.borderRootWidth = dom.root.offsetWidth - dom.root.clientWidth;
props.borderRootHeight = rootOffsetHeight - rootClientHeight;
props.borderRootWidth = rootOffsetWidth - dom.root.clientWidth;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is dom.root.clientWidth not set at the beginning as-well?

@yotamberk
Copy link
Owner

Really awesome work! some of the best work done in this project in a long time!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants