r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.71k stars 553 forks source link

[4.3.x] window is dragging when it shouldn't #1207

Closed PythonFZ closed 1 year ago

PythonFZ commented 1 year ago

Specification

Description

I'm using three.js to visualize particles and use pywebview to run the visualisation in a dedicated window. Since release 4.3 the webview window is being dragged together with the three.js scene. webview_bug

I'm using

wv.create_window(
        "ZnDraw",
        url,
        width=1280,
        height=720,
        resizable=True,
        fullscreen=false,
        confirm_close=True,
        background_color="#FFFFFF",
    )
wv.start()

This can be reproduced either by using the ZnDraw package pip install zndraw==0.2.0a15 and running zndraw in the terminal. Alternatively, I found this three.js demo website that demonstrates the same issue via:

import webview as wv
wv.create_window(url="https://dev-sandbox.pixotronics.com/webgi/0.8.2-dev.4/demos/core~viewer.html?m=pixo://gltf/ijeweldemo1.glb", title="three")

wv.start()
r0x0r commented 1 year ago

easy_drag was mistakenly enabled by default. This is now fixed in 4.3.2.