Closed RobertGemmaJr closed 2 years ago
Swap out this.handleResize
(line 97 in `acrball-controller.js) and similar functions for arrow functions as well
See if we could make all of these things into their own classes? Will need to get a better picture of what each file is doing
Issue moved to react-volume-viewer
library
getMouseonCircle
,getMouseOnScreen
, and many more inarcball-controller.js
. Seems to be in other files as well.Using
() => {}
arrow functions will preserve thethis
scope solet _this = this
is no longer needed. Moreover, the function definitions should not immediately call themselves like:Define all the functions and then call them elsewhere