Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gl-w-frontend

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-w-frontend - npm Package Compare versions

Comparing version 10.3.0 to 10.4.0

4

lib/lib/scripts/core/services/browser/src/core-services-browser.service.d.ts

@@ -22,2 +22,6 @@ import { IFullScreenAlt, IFullScreenSrc, IMenuButton } from '../../menu/src';

export declare const BrowserViewPort: ViewPort;
declare class Cursor {
hideWhenIdle(): void;
}
export declare const BrowserCursor: Cursor;
export {};

@@ -106,2 +106,26 @@ import screenfull from 'screenfull';

export const BrowserViewPort = new ViewPort();
class Cursor {
hideWhenIdle() {
document.addEventListener('DOMContentLoaded', () => {
let idleMouseTimer;
let forceMouseHide = false;
document.body.style.cursor = 'none';
document.body.addEventListener('mousemove', () => {
if (forceMouseHide) {
return;
}
document.body.style.cursor = '';
clearTimeout(idleMouseTimer);
idleMouseTimer = setTimeout(() => {
document.body.style.cursor = 'none';
forceMouseHide = true;
setTimeout(() => {
forceMouseHide = false;
}, 200);
}, 1000);
});
});
}
}
export const BrowserCursor = new Cursor();
//# sourceMappingURL=core-services-browser.service.js.map

@@ -22,2 +22,6 @@ import { IFullScreenAlt, IFullScreenSrc, IMenuButton } from '../../menu/src';

export declare const BrowserViewPort: ViewPort;
declare class Cursor {
hideWhenIdle(): void;
}
export declare const BrowserCursor: Cursor;
export {};

@@ -106,2 +106,26 @@ import screenfull from 'screenfull';

export const BrowserViewPort = new ViewPort();
class Cursor {
hideWhenIdle() {
document.addEventListener('DOMContentLoaded', () => {
let idleMouseTimer;
let forceMouseHide = false;
document.body.style.cursor = 'none';
document.body.addEventListener('mousemove', () => {
if (forceMouseHide) {
return;
}
document.body.style.cursor = '';
clearTimeout(idleMouseTimer);
idleMouseTimer = setTimeout(() => {
document.body.style.cursor = 'none';
forceMouseHide = true;
setTimeout(() => {
forceMouseHide = false;
}, 200);
}, 1000);
});
});
}
}
export const BrowserCursor = new Cursor();
//# sourceMappingURL=core-services-browser.service.js.map

2

package.json
{
"name": "gl-w-frontend",
"version": "10.3.0",
"version": "10.4.0",
"description": "Common code for using among web front-end development such as ES6+ and TypeScript",

@@ -5,0 +5,0 @@ "main": "lib/bundle.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc