My Structure (There are no vertical slides but only Horizontal Slides.)
FullPage
------Horizontal Sliders
---------Slider1
---------Slider2
On each of the Horizontal Slide, I am having a table which lists set of items. I am able to scroll horizontally but unable to scroll the contents inside the table using mouse wheeler.
Below is the sample Code.
--------------------------------------------------MainPage-------------------------------------------------------------------
`import React from 'react';
const fullPageOptions = {
// for mouse/wheel events
// represents the level of force required to generate a slide change on non-mobile, 0 is default
scrollSensitivity: 2,
// for touchStart/touchEnd/mobile scrolling
// represents the level of force required to generate a slide change on mobile, 0 is default
touchSensitivity: 2,
scrollSpeed: 500,
resetSlides: true,
hideScrollBars: true,
enableArrowKeys: true,
// optional, set the initial vertical slide
activeSlide: 0
};
function scrollNavStart(nav) {
// make the nav fixed when we start scrolling horizontally
nav.style.position = 'fixed';
}
function scrollNavEnd(nav) {
// make the nav absolute when scroll finishes
nav.style.position = 'absolute';
}
export default FullpageReact;
`
--------------------------------------------------TablePage-------------------------------------------------------------------
`import React from 'react'
My Structure (There are no vertical slides but only Horizontal Slides.) FullPage ------Horizontal Sliders ---------Slider1 ---------Slider2
On each of the Horizontal Slide, I am having a table which lists set of items. I am able to scroll horizontally but unable to scroll the contents inside the table using mouse wheeler.
Below is the sample Code.
--------------------------------------------------MainPage------------------------------------------------------------------- `import React from 'react';
import { Fullpage, HorizontalSlider, Slide } from '../lib/index'; const { changeFullpageSlide, changeHorizontalSlide } = Fullpage;
require('./normalize.css'); require('./skeleton.css'); require('./exampleStyles.styl');
const fullPageOptions = { // for mouse/wheel events // represents the level of force required to generate a slide change on non-mobile, 0 is default scrollSensitivity: 2,
// for touchStart/touchEnd/mobile scrolling // represents the level of force required to generate a slide change on mobile, 0 is default touchSensitivity: 2, scrollSpeed: 500, resetSlides: true, hideScrollBars: true, enableArrowKeys: true,
// optional, set the initial vertical slide activeSlide: 0 };
const horizontalNavStyle = { position: 'absolute', width: '100%', top: '50%', zIndex: 10 };
const horizontalSliderProps = { name: 'horizontalSlider1', infinite: true };
class FullpageReact extends React.Component { constructor(props) { super(props); this.state = { active: { Fullpage: 0, horizontalSlider1: 0 } };
}
onSlideChangeStart(name, props, state, newState) { if (!this.horizontalNav) { this.horizontalNav = document.getElementById('horizontal-nav'); }
}
onSlideChangeEnd(name, props, state, newState) { if (name === 'horizontalSlider1') { scrollNavEnd(this.horizontalNav); }
}
render() { const { active } = this.state;
} }
function scrollNavStart(nav) { // make the nav fixed when we start scrolling horizontally nav.style.position = 'fixed'; }
function scrollNavEnd(nav) { // make the nav absolute when scroll finishes nav.style.position = 'absolute'; }
export default FullpageReact; `
--------------------------------------------------TablePage------------------------------------------------------------------- `import React from 'react'
export default class TableData extends React.Component { constructor(props) { super(props); }
render() { return (
} } `
--------------------------------------------------Table Page CSS-------------------------------------------------------------------
`.single-field-editor-card-wrap { position: relative;
}
.single-field-editor-table-wrap { height: 300px; overflow-y: scroll; border: 1px solid #ddddddff; border-radius: 5px; padding: 5px; }
.single-field-editor-table { table-layout: initial; }
.Card { max-width: 50%; min-width: 50%; left: 20%; position: absolute; }`