Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
ebd0c0bb
Commit
ebd0c0bb
authored
Sep 16, 2016
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed mobile version on ios.
parent
6b18a65a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
0 deletions
+72
-0
apps/documenteditor/mobile/app/controller/toolbar/Edit.js
apps/documenteditor/mobile/app/controller/toolbar/Edit.js
+18
-0
apps/documenteditor/mobile/app/controller/toolbar/View.js
apps/documenteditor/mobile/app/controller/toolbar/View.js
+18
-0
apps/presentationeditor/mobile/app/controller/toolbar/View.js
.../presentationeditor/mobile/app/controller/toolbar/View.js
+18
-0
apps/spreadsheeteditor/mobile/app/controller/toolbar/View.js
apps/spreadsheeteditor/mobile/app/controller/toolbar/View.js
+18
-0
No files found.
apps/documenteditor/mobile/app/controller/toolbar/Edit.js
View file @
ebd0c0bb
...
...
@@ -130,6 +130,24 @@ Ext.define('DE.controller.toolbar.Edit', {
}
},
this
);
if
(
Ext
.
os
.
is
.
iOS
)
{
Ext
.
each
(
Ext
.
ComponentQuery
.
query
(
'
button
'
),
function
(
button
)
{
button
.
element
.
dom
.
ontouchstart
=
Ext
.
emptyFn
();
button
.
element
.
dom
.
ontouchmove
=
Ext
.
emptyFn
();
button
.
element
.
dom
.
ontouchend
=
Ext
.
emptyFn
();
},
this
);
Ext
.
each
(
Ext
.
ComponentQuery
.
query
(
'
toolbar
'
),
function
(
toolbar
)
{
var
preventFn
=
function
(
e
){
e
.
preventDefault
();
};
toolbar
.
element
.
dom
.
ontouchstart
=
preventFn
;
toolbar
.
element
.
dom
.
ontouchmove
=
preventFn
;
toolbar
.
element
.
dom
.
ontouchend
=
preventFn
;
},
this
);
}
Common
.
Gateway
.
on
(
'
init
'
,
Ext
.
bind
(
this
.
loadConfig
,
this
));
},
...
...
apps/documenteditor/mobile/app/controller/toolbar/View.js
View file @
ebd0c0bb
...
...
@@ -87,6 +87,24 @@ Ext.define('DE.controller.toolbar.View', {
launch
:
function
()
{
this
.
callParent
(
arguments
);
if
(
Ext
.
os
.
is
.
iOS
)
{
Ext
.
each
(
Ext
.
ComponentQuery
.
query
(
'
button
'
),
function
(
button
)
{
button
.
element
.
dom
.
ontouchstart
=
Ext
.
emptyFn
();
button
.
element
.
dom
.
ontouchmove
=
Ext
.
emptyFn
();
button
.
element
.
dom
.
ontouchend
=
Ext
.
emptyFn
();
},
this
);
Ext
.
each
(
Ext
.
ComponentQuery
.
query
(
'
toolbar
'
),
function
(
toolbar
)
{
var
preventFn
=
function
(
e
){
e
.
preventDefault
();
};
toolbar
.
element
.
dom
.
ontouchstart
=
preventFn
;
toolbar
.
element
.
dom
.
ontouchmove
=
preventFn
;
toolbar
.
element
.
dom
.
ontouchend
=
preventFn
;
},
this
);
}
Common
.
Gateway
.
on
(
'
init
'
,
Ext
.
bind
(
this
.
loadConfig
,
this
));
Common
.
Gateway
.
on
(
'
opendocument
'
,
Ext
.
bind
(
this
.
loadDocument
,
this
));
Common
.
Gateway
.
on
(
'
applyeditrights
'
,
Ext
.
bind
(
this
.
onApplyEditRights
,
this
));
...
...
apps/presentationeditor/mobile/app/controller/toolbar/View.js
View file @
ebd0c0bb
...
...
@@ -79,6 +79,24 @@ Ext.define('PE.controller.toolbar.View', {
overlayContainer
.
element
.
on
(
'
touchend
'
,
this
.
onTouchEndDocument
,
this
);
}
if
(
Ext
.
os
.
is
.
iOS
)
{
Ext
.
each
(
Ext
.
ComponentQuery
.
query
(
'
button
'
),
function
(
button
)
{
button
.
element
.
dom
.
ontouchstart
=
Ext
.
emptyFn
();
button
.
element
.
dom
.
ontouchmove
=
Ext
.
emptyFn
();
button
.
element
.
dom
.
ontouchend
=
Ext
.
emptyFn
();
},
this
);
Ext
.
each
(
Ext
.
ComponentQuery
.
query
(
'
toolbar
'
),
function
(
toolbar
)
{
var
preventFn
=
function
(
e
){
e
.
preventDefault
();
};
toolbar
.
element
.
dom
.
ontouchstart
=
preventFn
;
toolbar
.
element
.
dom
.
ontouchmove
=
preventFn
;
toolbar
.
element
.
dom
.
ontouchend
=
preventFn
;
},
this
);
}
Common
.
Gateway
.
on
(
'
init
'
,
Ext
.
bind
(
this
.
loadConfig
,
this
));
},
...
...
apps/spreadsheeteditor/mobile/app/controller/toolbar/View.js
View file @
ebd0c0bb
...
...
@@ -73,6 +73,24 @@
launch
:
function
()
{
this
.
callParent
(
arguments
);
if
(
Ext
.
os
.
is
.
iOS
)
{
Ext
.
each
(
Ext
.
ComponentQuery
.
query
(
'
button
'
),
function
(
button
)
{
button
.
element
.
dom
.
ontouchstart
=
Ext
.
emptyFn
();
button
.
element
.
dom
.
ontouchmove
=
Ext
.
emptyFn
();
button
.
element
.
dom
.
ontouchend
=
Ext
.
emptyFn
();
},
this
);
Ext
.
each
(
Ext
.
ComponentQuery
.
query
(
'
toolbar
'
),
function
(
toolbar
)
{
var
preventFn
=
function
(
e
){
e
.
preventDefault
();
};
toolbar
.
element
.
dom
.
ontouchstart
=
preventFn
;
toolbar
.
element
.
dom
.
ontouchmove
=
preventFn
;
toolbar
.
element
.
dom
.
ontouchend
=
preventFn
;
},
this
);
}
Common
.
Gateway
.
on
(
'
init
'
,
Ext
.
bind
(
this
.
loadConfig
,
this
));
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment