Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant not bundle without issues #584

Open
Seabizkit opened this issue May 12, 2022 · 0 comments
Open

cant not bundle without issues #584

Seabizkit opened this issue May 12, 2022 · 0 comments

Comments

@Seabizkit
Copy link

Seabizkit commented May 12, 2022

This can not bundle,

$(function () {
    ParadoxPanelResizer.attachPanel("split-panel", "split-left");
});

var ParadoxPanelResizer = {

    attachPanel: function (panelId, targetId) {

       // debugger;

        const BORDER_SIZE = 4;
        const panel = document.getElementById(panelId);
        if (panel == null)
            return;
        const target = document.getElementById(targetId);
        let m_pos;

        function resize(e) {
            //console.log("resizing");
            const dx = m_pos - e.x;
            m_pos = e.x;
            target.style.width = (parseInt(getComputedStyle(target, '').width) - dx) + "px";
        }

        //function mousemoveRemove(e) {
        //    console.log("remove-mousemove");
        //    resize(e);
        //}

        panel.addEventListener("mousedown", function (e) {

           // console.log("add-mousedown");
            //if (e.offsetX < BORDER_SIZE) {
                m_pos = e.x;
                document.addEventListener("mousemove", resize, false);
          //  }
        }, false);

        document.addEventListener("mouseup", function () {
            //console.log("add-mouseup");
            document.removeEventListener("mousemove", resize, false);
        }, false);
    }

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

No branches or pull requests

1 participant