Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
f77853a2
Commit
f77853a2
authored
Jul 10, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#12408 ホイール対応
parent
ef9454d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
abvw/js/contentview.js
+6
-5
abvw/js/contentview_Events.js
+1
-1
No files found.
abvw/js/contentview.js
View file @
f77853a2
...
...
@@ -3681,16 +3681,17 @@ function setDefaultEvent() {
//#12408 ホイール対応
// MouseScrollEvent に対応している(FireFox 専用)
if
(
window
.
MouseScrollEvent
){
console
.
log
(
"addEventListener DOMMouseScroll"
);
//
console.log("addEventListener DOMMouseScroll");
document
.
getElementById
(
'main'
).
addEventListener
(
'DOMMouseScroll'
,
function
(
event
){
mouseWheel_CanvasMain
(
event
,
event
.
detail
);
},
false
);
// FireFox 以外の主要ブラウザの場合
}
else
{
console
.
log
(
"addEventListener mousewheel"
);
document
.
getElementById
(
'main'
).
addEventListener
(
'mousewheel'
,
function
(
e
){
mouseWheel_CanvasMain
(
event
,
event
.
wheelDelta
);
},
false
);
//console.log("addEventListener mousewheel");
var
mousewheelevent
=
'onwheel'
in
document
?
'wheel'
:
'onmousewheel'
in
document
?
'mousewheel'
:
'DOMMouseScroll'
;
document
.
getElementById
(
'main'
).
addEventListener
(
mousewheelevent
,
function
(
e
){
mouseWheel_CanvasMain
(
event
,
-
(
e
.
wheelDelta
/
40
));
},
false
);
}
if
(
avwUserEnvObj
.
browser
==
'msie'
)
{
...
...
abvw/js/contentview_Events.js
View file @
f77853a2
...
...
@@ -957,7 +957,7 @@ function onClick_CanvasMain(event) {
function
mouseWheel_CanvasMain
(
event
,
detail
)
{
//console.log("mouseWheel:" + detail);
event
.
preventDefault
();
//
event.preventDefault();
if
(
_isTouching
){
return
;
...
...
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