Check patentability & draft patents in minutes with Patsnap Eureka AI!

Scroll bar control method and device

A control method and scroll bar technology, applied in program control devices, user interface execution and other directions, can solve the problems of large amount of code, slow web page speed, inability to customize the style of native scroll bars, etc., and achieve the effect of simple code

Active Publication Date: 2019-08-13
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] For the defect that the native scroll bar provided by the browser cannot customize the style, the current solution is to use web script to add a custom scroll bar to the browser to simulate the behavior and style of the native scroll bar
The above-mentioned solution solves the defect that the native scroll bar cannot customize the style, but at the same time destroys the event system and some default behaviors of the native scroll bar, such as the scroll event that the web page can listen to, the bubbling of the scroll event, and the scrolling of the mouse wheel, up and down Key-triggered scrolling, nested scrolling issues, and other common event behaviors of native scrollbars may not be provided by the custom scrollbar; if web scripts are used to completely simulate all behaviors of native scrollbars, the code development cost is very high and the code A large amount, and a large amount of code will cause the user to load the webpage very slowly, and the user satisfaction is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Scroll bar control method and device
  • Scroll bar control method and device
  • Scroll bar control method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0022] figure 1 It is a schematic flow chart of the first embodiment of the scroll bar control method of the present invention; figure 1 As shown, the scroll bar control method of the present invention comprises the following steps:

[0023] Step S01, nesting the native scroll bar container where the browser's native scroll bar is located into a preset outer container;

[0024] In the embodiment of the present invention, by wrapping a container on the outer layer of the container where the original scroll bar is located, and serving as a container for carrying the custom scroll bar and the original scroll bar of the hidden sub-container, in this way, the custom scro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a scroll bar control method and device. The scroll bar control method comprises the following steps of nesting a native scroll bar container where a native scroll bar of a browser is located into a preset outer layer container; monitoring a scrolling event of the native scroll bar container; operating a position of a user-defined scroll bar in the outer layer container according to the scrolling event corresponding to the native scroll bar container so as to enable the user-defined scroll bar to be consistent to the native scroll bar. The scroll bar control method and the device have the beneficial effects that the scroll bar can be user-defined, meanwhile, an event system and a default behavior of the native scroll bar are maintained, the implementation code is simple, and the speed of loading page by users cannot be affected at all.

Description

technical field [0001] The invention relates to the field of browsers, in particular to a scroll bar control method and device. Background technique [0002] For the defect that the native scroll bar provided by the browser cannot customize the style, the current solution is to use web scripts to add a custom scroll bar to the browser to simulate the behavior and style of the native scroll bar. The above-mentioned solution solves the defect that the native scroll bar cannot customize the style, but at the same time destroys the event system and some default behaviors of the native scroll bar, such as the scroll event that the web page can listen to, the bubbling of the scroll event, and the scrolling of the mouse wheel, up and down Key-triggered scrolling, nested scrolling issues, and other common event behaviors of native scrollbars may not be provided by the custom scrollbar; if web scripts are used to completely simulate all behaviors of native scrollbars, the code develo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/451
Inventor 吴文斌龙丁奋郭学亨朱磊于树南彭冲吴浩
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More