Skip to content

Commit

Permalink
Merge pull request #2746 from Azmoria/Beta---more-player-side-perform…
Browse files Browse the repository at this point in the history
…ance-improvement

Beta - more player side performance improvement
  • Loading branch information
Azmoria authored Dec 17, 2024
2 parents 0c4d3c3 + f23bdd2 commit 24a36f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CharactersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,12 @@ function observe_character_sheet_changes(documentToObserve) {
window.character_sheet_observer = new MutationObserver(function(mutationList, observer) {
if(window.DRAGGING || arrowKeysHeld[0] || arrowKeysHeld[1] || arrowKeysHeld[2] || arrowKeysHeld[3])
return;

const ignoreMutations = mutationList.some(d => {
const target = $(d.target);
return target.closest('#VTTWRAPPER').length>0 || target.hasClass('peerCursorPosition')
})
if(ignoreMutations)
return;
// console.log("character_sheet_observer", mutationList);

// initial injection of our buttons
Expand Down

0 comments on commit 24a36f0

Please sign in to comment.