RisingOrange / anki-mindmap

MIT License
4 stars 3 forks source link

image scroll zoom #17

Closed khonkhortisan closed 2 years ago

khonkhortisan commented 2 years ago

AttributeError: 'QWheelEvent' object has no attribute 'pos' TypeError: arguments did not match any overloaded call:
 mapToScene(self, QPoint): argument 1 has unexpected type 'QPointF'

khonkhortisan commented 2 years ago

The addon updated, these are the changes in my local copy I had to add back, putting them here so they're in one place

libaddon/gui/dialog_webview.py:89
    #@pyqtSlot("QWebEngineDownloadItem*")
mindmap_creator_dialog.py:185
        #view_pos = event.pos()
        try:
            view_pos = event.pos()
        except AttributeError:
            view_pos = event.position().toPoint()
_vendor/brain_dump/graphviz.py:34
            #layout='twopi',
            layout='circo',

don't throw error on startup, allow interactive zoom on mouse scroll, don't zoom out too far for large map

RisingOrange commented 2 years ago

Thanks for fixing this!