Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
x50-avatar
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
36712750
authored
May 21, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into release
parents
5c720eab
c48b730f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
Public/static/js/common.js
+15
-15
No files found.
Public/static/js/common.js
View file @
36712750
...
...
@@ -379,17 +379,17 @@ mc.on('pinchstart pinchmove pinchend', function (event) {
}
return
false
;
});
mc
.
on
(
'rotatestart rotatemove rotateend'
,
function
(
event
)
{
if
(
!
uploadedImg
)
{
return
;
}
if
(
event
.
type
==
'rotatestart'
||
event
.
type
==
'rotateend'
)
{
oldpoz
.
rotation
=
0
;
}
else
{
var
nowRotation
=
(
event
.
rotation
-
oldpoz
.
rotation
);
oldpoz
.
rotation
=
event
.
rotation
;
imgInfo
.
rotation
+=
nowRotation
;
drawImage
();
}
return
false
;
});
\ No newline at end of file
// mc.on('rotatestart rotatemove rotateend', function (event) {
// if (!uploadedImg) {
// return;
// }
// if (event.type == 'rotatestart' || event.type == 'rotateend') {
// oldpoz.rotation = 0;
// } else {
// var nowRotation = (event.rotation - oldpoz.rotation);
// oldpoz.rotation = event.rotation;
// imgInfo.rotation += nowRotation;
// drawImage();
// }
// return false;
// });
\ No newline at end of file
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