Commit 69c6ee16 by Masaru Abe

タッチ対応のデバイスでプレビューするとJSエラーで表示されないバグ修正

parent f74b44e8
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
<script src="js/contentview_CreateObjects.js" type="text/javascript"></script> <script src="js/contentview_CreateObjects.js" type="text/javascript"></script>
<script src="js/contentview_General.js" type="text/javascript"></script> <script src="js/contentview_General.js" type="text/javascript"></script>
<script src="js/contentview_initDefautValue.js" type="text/javascript"></script> <script src="js/contentview_initDefautValue.js" type="text/javascript"></script>
<script src="./js/contentview_Paint.js" type="text/javascript"></script>
<script src="./js/contentview.js"></script> <script src="./js/contentview.js"></script>
<script src="./js/contentview_PopupText.js"></script> <script src="./js/contentview_PopupText.js"></script>
<script src="./js/contentview_Anket.js"></script> <script src="./js/contentview_Anket.js"></script>
......
...@@ -1099,9 +1099,8 @@ function changePage(page_index) { ...@@ -1099,9 +1099,8 @@ function changePage(page_index) {
function drawOnCanvas() { function drawOnCanvas() {
tool = new tool_drawing(); tool = new tool_drawing();
if (isTouchDevice() == true) { if (isTouchDevice() == true) {
initializeCanvas(document.getElementById('draw_canvas')); CONTENTVIEW_PAINT.initializeCanvas(document.getElementById('draw_canvas'));
CONTENTVIEW_PAINT.initializeCanvas(document.getElementById('marker_canvas'));
initializeCanvas(document.getElementById('marker_canvas'));
} }
else { else {
// Attach the mousedown, mousemove and mouseup event listeners. // Attach the mousedown, mousemove and mouseup event listeners.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment