Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
83ee1c98
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
83ee1c98
编写于
4月 29, 2016
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up in scrollableElement
上级
585465c0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
31 deletion
+5
-31
src/vs/base/browser/ui/scrollbar/abstractScrollbar.ts
src/vs/base/browser/ui/scrollbar/abstractScrollbar.ts
+2
-2
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
+0
-21
src/vs/base/browser/ui/scrollbar/scrollableElementImpl.ts
src/vs/base/browser/ui/scrollbar/scrollableElementImpl.ts
+3
-8
未找到文件。
src/vs/base/browser/ui/scrollbar/abstractScrollbar.ts
浏览文件 @
83ee1c98
...
...
@@ -8,7 +8,7 @@ import * as Browser from 'vs/base/browser/browser';
import
*
as
Platform
from
'
vs/base/common/platform
'
;
import
*
as
DomUtils
from
'
vs/base/browser/dom
'
;
import
{
IMouseEvent
,
StandardMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
IMouseWheelEvent
,
IParent
,
Visibility
,
IScrollbar
}
from
'
vs/base/browser/ui/scrollbar/scrollableElement
'
;
import
{
IMouseWheelEvent
,
IParent
,
Visibility
}
from
'
vs/base/browser/ui/scrollbar/scrollableElement
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
GlobalMouseMoveMonitor
,
IStandardMouseMoveEventData
,
standardMouseMoveMerger
}
from
'
vs/base/browser/globalMouseMoveMonitor
'
;
import
{
Widget
}
from
'
vs/base/browser/ui/widget
'
;
...
...
@@ -374,7 +374,7 @@ export interface IMouseMoveEventData {
posy
:
number
;
}
export
abstract
class
AbstractScrollbar
extends
Widget
implements
IScrollbar
{
export
abstract
class
AbstractScrollbar
extends
Widget
{
protected
_forbidTranslate3dUse
:
boolean
;
private
_lazyRender
:
boolean
;
...
...
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
浏览文件 @
83ee1c98
...
...
@@ -4,8 +4,6 @@
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
{
FastDomNode
}
from
'
vs/base/browser/styleMutator
'
;
export
interface
IScrollableElementCreationOptions
{
/**
* Prevent the scrollbar rendering from using translate3d. Defaults to false.
...
...
@@ -130,10 +128,6 @@ export interface IDimensions {
*/
export
interface
IScrollableElement
{
verticalScrollbarWidth
:
number
;
horizontalScrollbarHeight
:
number
;
/**
* Get the generated 'scrollable' dom node
*/
...
...
@@ -185,21 +179,6 @@ export interface IMouseWheelEvent {
stopPropagation
():
void
;
}
export
interface
IScrollbar
{
domNode
:
FastDomNode
;
dispose
():
void
;
onElementSize
(
size
:
number
):
boolean
;
onElementScrollSize
(
scrollSize
:
number
):
boolean
;
onElementScrollPosition
(
scrollPosition
:
number
):
boolean
;
beginReveal
():
void
;
beginHide
():
void
;
delegateMouseDown
(
browserEvent
:
MouseEvent
):
void
;
validateScrollPosition
(
scrollPosition
:
number
):
number
;
setDesiredScrollPosition
(
scrollPosition
:
number
):
boolean
;
render
():
void
;
}
export
interface
IParent
{
onMouseWheel
(
mouseWheelEvent
:
IMouseWheelEvent
):
void
;
onDragStart
():
void
;
...
...
src/vs/base/browser/ui/scrollbar/scrollableElementImpl.ts
浏览文件 @
83ee1c98
...
...
@@ -12,7 +12,7 @@ import {StandardMouseWheelEvent, IMouseEvent} from 'vs/base/browser/mouseEvent';
import
{
HorizontalScrollbar
}
from
'
vs/base/browser/ui/scrollbar/horizontalScrollbar
'
;
import
{
VerticalScrollbar
}
from
'
vs/base/browser/ui/scrollbar/verticalScrollbar
'
;
import
{
IScrollableElementOptions
,
I
Scrollbar
,
I
Dimensions
,
IMouseWheelEvent
,
visibilityFromString
,
IScrollableElementOptions
,
IDimensions
,
IMouseWheelEvent
,
visibilityFromString
,
IScrollableElement
,
IScrollableElementCreationOptions
,
IOverviewRulerLayoutInfo
}
from
'
vs/base/browser/ui/scrollbar/scrollableElement
'
;
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
...
...
@@ -28,10 +28,8 @@ export class ScrollableElement extends Widget implements IScrollableElement {
private
_options
:
IScrollableElementOptions
;
private
_scrollable
:
DelegateScrollable
;
public
verticalScrollbarWidth
:
number
;
public
horizontalScrollbarHeight
:
number
;
private
_verticalScrollbar
:
IScrollbar
;
private
_horizontalScrollbar
:
IScrollbar
;
private
_verticalScrollbar
:
VerticalScrollbar
;
private
_horizontalScrollbar
:
HorizontalScrollbar
;
private
_domNode
:
HTMLElement
;
private
_leftShadowDomNode
:
FastDomNode
;
...
...
@@ -56,9 +54,6 @@ export class ScrollableElement extends Widget implements IScrollableElement {
this
.
_scrollable
=
this
.
_register
(
new
DelegateScrollable
(
scrollable
,
()
=>
this
.
_onScroll
()));
this
.
verticalScrollbarWidth
=
this
.
_options
.
verticalScrollbarSize
;
this
.
horizontalScrollbarHeight
=
this
.
_options
.
horizontalScrollbarSize
;
this
.
_verticalScrollbar
=
this
.
_register
(
new
VerticalScrollbar
(
this
.
_scrollable
,
this
,
this
.
_options
));
this
.
_horizontalScrollbar
=
this
.
_register
(
new
HorizontalScrollbar
(
this
.
_scrollable
,
this
,
this
.
_options
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录