Community
    • Login

    I want to prevent the font size from changing with the mouse wheel

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 997 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • s sS Offline
      s s
      last edited by

      I am using a fast scrolling mouse.
      While using the shortcut key that uses the Ctrl button, scrolling is moving, and it often happens that the character size of Notepad++ changes.

      Is it possible to fix the font size?

      Michael VincentM 1 Reply Last reply Reply Quote 0
      • Michael VincentM Offline
        Michael Vincent @s s
        last edited by

        @s-s

        Zoom Disabler

        Cheers.

        Alan KilbornA s sS 2 Replies Last reply Reply Quote 3
        • Alan KilbornA Offline
          Alan Kilborn @Michael Vincent
          last edited by

          @Michael-Vincent

          I had a look at the Zoom Disabler plugin code.
          It’s logic seems to be:

          • get notified that user has changed the zoom level
          • correct for that by setting a different zoom level

          I tried duplicating that in a PythonScript and, although it works, it is a bit visually glitchy:

          # -*- coding: utf-8 -*-
          
          from Npp import Editor, SCINTILLANOTIFICATION
          
          #-------------------------------------------------------------------------------
          
          class ZoomDisabler(object):
          
              def __init__(self):
                  editor.callback(self.zoom_callback, [SCINTILLANOTIFICATION.ZOOM])
          
              def zoom_callback(self, args):
                  editor.setZoom(0)
          
          #-------------------------------------------------------------------------------
          
          if __name__ == '__main__': ZoomDisabler()
          

          I’m not going to try the actual Zoom Disabler plugin, but I’d think it would be visually glitchy as well.

          1 Reply Last reply Reply Quote 2
          • s sS Offline
            s s @Michael Vincent
            last edited by

            @Michael-Vincent
            Wow, I didn’t know there was such a plugin.
            thank you very much. solved.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors