Configuring global options

The config function receives a SystemOptions object and will update only the global options presents in it.

// Example
import { config } from 'pointitout' 
    
config({
    updateOnResize: false // disable the updateOnResize. It does
                          // not alter the other options.
})

SystemOptions

Name
Type/s
Description
updateOnResize Default: true
boolean
If true, the update function will be called on every window resize, updating all pointers.
updateAfterLoad Default: true
boolean
If true, the update function will be called on window's "load" event. This is a default basic layout shifting management.