|
|
@@ -7,7 +7,6 @@ import android.content.Context;
|
|
|
import android.os.Parcelable;
|
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
-import android.util.Log;
|
|
|
import android.view.View;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
@@ -95,9 +94,13 @@ public class MainContentsCategoryHolder extends MainContentsHolder {
|
|
|
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
|
|
|
if (null != adapter) {
|
|
|
adapter.onScrolled(recyclerView, dx, dy);
|
|
|
- if (index == 1 && dx > 0) {
|
|
|
+ /**
|
|
|
+ * 스크롤 시킬 조건
|
|
|
+ * - 1번 카테고리가 화면에서 벗어나 있을 때, (아래 쪽이 잘렸을 때)
|
|
|
+ */
|
|
|
+ if (index == 1 && dx != 0) {
|
|
|
// Log.i("APP# MainContentsCategoryHolder | onScrolled", "|" + "---------------------------------------" + dx + ", " + dy);
|
|
|
- listener.onEvent(new Event.Builder(Event.SCROLL).build());
|
|
|
+// listener.onEvent(new Event.Builder(Event.SCROLL).build());
|
|
|
}
|
|
|
}
|
|
|
}
|