Skip to content

Maintenence

xao requested to merge xao321/degrees-of-lewdity:colorhanges into dev

Not for changelog - only dev changes

  • Modified the twee compiler:

    • It is now possible to have multiple js or css files with the same name - if they are in different folders. (Previously threw an error during compilation, and the first file was ignored)
    • Tested it over several weeks with no issues by compiling normally.

    Reworked tooltips completely:

  • I wanted to make the new tooltips more useful and easier to use. I did a total refactor for making it much more robust, and removed the need to do any manual tooltip initialization. Hopefully will see some more use now.

    • Refactored completely.
    • Removed the need for manual initialization of tooltips (Never need to add initializeTooltips() any more)
    • Improved performance (of the tooltips) when loading page or overlay by 50%-80% due to better handling of dynamic elements, and event delegation.
    • Further improved performance for showing/hiding the tooltips due to better caching of elements and reduced redundant updates.
    • Improved performance and smoothness for when the tooltip follows the cursor, due to throttling to the framerate.
    • Better cleanup and handling of orphaned tooltips (tooltips that remain after the element has been removed in the DOM)
Edited by xao

Merge request reports

Loading