debug
This commit is contained in:
parent
0e2946e4e6
commit
817eb09192
@ -57,6 +57,7 @@ export const Menu = (props) => {
|
||||
/** @type {React.MutableRefObject<null|Toggler>} */
|
||||
const refCollapser = React.useRef(null);
|
||||
|
||||
console.log("render...");
|
||||
React.useEffect(() => {
|
||||
refElement.current &&
|
||||
(refCollapser.current = Collapser(refElement.current));
|
||||
@ -89,6 +90,8 @@ export const Menu = (props) => {
|
||||
/** @typedef {(inElement:HTMLElement)=>Toggler} Collapse */
|
||||
/** @type Collapse */
|
||||
const Collapser = (inElement) => {
|
||||
console.log("collapser initialized");
|
||||
|
||||
/** @type UserDone */
|
||||
let userDone = () => {};
|
||||
let userMode = false;
|
||||
@ -109,6 +112,8 @@ const Collapser = (inElement) => {
|
||||
|
||||
/** @type Toggler */
|
||||
const show = (inOpen, inMs, inDone) => {
|
||||
console.log("collapser invoked");
|
||||
|
||||
cancelAnimationFrame(frameRequest);
|
||||
if ((!inOpen && !inMs) && !inDone) {
|
||||
inElement.removeEventListener("transitionend", done);
|
||||
|
Loading…
Reference in New Issue
Block a user