|
@@ -191,20 +191,20 @@ const onPrevDate = name => {
|
|
|
index = scenes.length - 1
|
|
|
}
|
|
|
|
|
|
- if (name) {
|
|
|
- if (name == 'source') {
|
|
|
- if (scenes[index].num == target.value.num) {
|
|
|
- index--
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (scenes[index].num == source.value.num) {
|
|
|
- index--
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (index == -1) {
|
|
|
- index = scenes.length - 1
|
|
|
- }
|
|
|
+ // if (name) {
|
|
|
+ // if (name == 'source') {
|
|
|
+ // if (scenes[index].num == target.value.num) {
|
|
|
+ // index--
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // if (scenes[index].num == source.value.num) {
|
|
|
+ // index--
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (index == -1) {
|
|
|
+ // index = scenes.length - 1
|
|
|
+ // }
|
|
|
scene.value = scenes[index]
|
|
|
}
|
|
|
const onNextDate = name => {
|
|
@@ -221,20 +221,20 @@ const onNextDate = name => {
|
|
|
if (++index > scenes.length - 1) {
|
|
|
index = 0
|
|
|
}
|
|
|
- if (name) {
|
|
|
- if (name == 'source') {
|
|
|
- if (scenes[index].num == target.value.num) {
|
|
|
- index++
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (scenes[index].num == source.value.num) {
|
|
|
- index++
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (index > scenes.length - 1) {
|
|
|
- index = 0
|
|
|
- }
|
|
|
+ // if (name) {
|
|
|
+ // if (name == 'source') {
|
|
|
+ // if (scenes[index].num == target.value.num) {
|
|
|
+ // index++
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // if (scenes[index].num == source.value.num) {
|
|
|
+ // index++
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (index > scenes.length - 1) {
|
|
|
+ // index = 0
|
|
|
+ // }
|
|
|
scene.value = scenes[index]
|
|
|
}
|
|
|
|