Skip to content

hempe/ctrlZoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctrlZoom

Chrome extension to add back "Ctrl + touch pad scroll" to zoom in and out.

Installation

Got to the extension in chrome web store and add it to your browser.

Configuration

Scroll threshold (default 20px)

The default threshold used to determin if a wheel event should invoke a zoom. Or in other words how sensitiv the zoom behavior is.

This value worked for me, depending on your touchpad or preference you might need to increase/decrease this value.

Step size (default 10%)

This value specifies how much to change the current zoom level. It's an absolute percentage. If your current zoom level is 50% and you zoom in 1 step the new zoom level will be 60% (if step size is 10%)

Minimum delay between zooms (default 100ms)

This value defines the minimum delay between zoom events. During this delay new wheel events will be ignored.

This value worked for me, depending on your touchpad or preference you might need to increase/decrease this value.

Direction reversed (default false)

This will simply change the wheel direction for zooming.

Use browser zoom (default true)

Normaly this extension uses the chrome tab zoom (browser zoom).

If you use chromes zoom, it remembers the zoom level on a per host name basis: chrome://settings/content/zoomLevels?search=zoom

If you disable this, the extesion will use document.body.style.zoom instead, which chrome does not track.

It will also intercept "CTRL+0" (but not prevent the default behavior) and reset the zoom level to 100%

Intercept ctrl +/- (default false)

If enabled the extension will intercept ctrl + and ctrl -.

This is done because for example on the swiss keyboard layout chrome does not accept shift ctrl 1 which should be equivalent to ctrl + as ctrl +.

Unlike chrome if intercept is enabled the extension will check of the resulting key instead of the actual key code.

Disabled (default false)

If you need to temporarily disable the zoom behavior, you can simply check Disabled. If set, the extension will no longer perform any zoom

Non browser zoom (document zoom)

Show PupUp (default false)

If enabled a little ui will pop up to show the current non browser zoom. The popup also contains buttons to increase and decrease the zoom level, as well as reset the zoom level.

Show PupUp time (default 2000ms)

This value defines, for how long the pop up should be displayed after a zoom action.

About

Chrome extension to add back "Ctrl + touch pad scroll" to zoom in and out.

Resources

License

Stars

Watchers

Forks

Packages

No packages published