Git Product home page Git Product logo

Comments (4)

GeoffreyChen777 avatar GeoffreyChen777 commented on May 28, 2024

Sorry I cannot reproduce this issue. Could you please try to restart paperlib, or provide more details?

from paperlib.

MusculusMus avatar MusculusMus commented on May 28, 2024

I restart paperlib and my computer too, same error. Then I tried to resinstall the .dmg file, the same error again.
All other hotkeys work well. I change the "cmd+shift+I" to other key combination and the same error.

from paperlib.

GeoffreyChen777 avatar GeoffreyChen777 commented on May 28, 2024

OK, I will try my best to figure it out. Thanks for your information.

from paperlib.

GeoffreyChen777 avatar GeoffreyChen777 commented on May 28, 2024

@MusculusMus It seems that the issue is caused by the screen resolution.

Could you please provide your screen settings? macbook builtin screen or external screen?

      const { x, y } = screen.getCursorScreenPoint();
      const currentDisplay = screen.getDisplayNearestPoint({ x, y });
      const bounds = currentDisplay.bounds;
      const centerx = bounds.x + (bounds.width - 600) / 2;
      const centery = bounds.y + (bounds.height - 48) / 2;
      winPlugin?.setPosition(centerx, centery);

this code is trying to set the position of the plugin window to the center point of your screen. But on your computer, it seems that the centery is invalid. I wanna know the exact number of this centery. Do you have any IM such as wechat, or whatsapp? I may need to send you a testing package to help me fix this issue if it is ok for you.

from paperlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.